From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D55C4138334 for ; Tue, 31 Dec 2019 17:45:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 24259E0A10; Tue, 31 Dec 2019 17:45:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0ECE5E0A10 for ; Tue, 31 Dec 2019 17:45:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 78CD334DDF5 for ; Tue, 31 Dec 2019 17:45:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 797253D for ; Tue, 31 Dec 2019 17:45:21 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1577814259.b71890e7ec94187258bbd0de4553d8dd8d339efd.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/argon2/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/argon2/argon2-20190702.ebuild X-VCS-Directories: app-crypt/argon2/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: b71890e7ec94187258bbd0de4553d8dd8d339efd X-VCS-Branch: master Date: Tue, 31 Dec 2019 17:45:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 41c798e1-d0a3-4ea8-bfd7-29918327770f X-Archives-Hash: 0671e79d19d5b534dd31badd05341272 commit: b71890e7ec94187258bbd0de4553d8dd8d339efd Author: Michał Górny gentoo org> AuthorDate: Tue Dec 31 17:44:19 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Dec 31 17:44:19 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b71890e7 app-crypt/argon2: Enable optimizations only if SSE2 is enabled Signed-off-by: Michał Górny gentoo.org> app-crypt/argon2/argon2-20190702.ebuild | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app-crypt/argon2/argon2-20190702.ebuild b/app-crypt/argon2/argon2-20190702.ebuild index 8681475dd80..dca7161761b 100644 --- a/app-crypt/argon2/argon2-20190702.ebuild +++ b/app-crypt/argon2/argon2-20190702.ebuild @@ -31,10 +31,15 @@ src_prepare() { tc-export CC + OPTTEST=1 if use amd64 || use x86; then - OPTTEST=0 - else - OPTTEST=1 + $(tc-getCPP) ${CFLAGS} ${CPPFLAGS} -P - <<-EOF &>/dev/null && OPTTEST=0 + #if defined(__SSE2__) + true + #else + #error false + #endif + EOF fi }