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 7DB2F139694 for ; Thu, 16 Feb 2017 14:16:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C3C11E0C26; Thu, 16 Feb 2017 14:16:31 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9E939E0C26 for ; Thu, 16 Feb 2017 14:16:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 94C52341586 for ; Thu, 16 Feb 2017 14:16:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C940249E4 for ; Thu, 16 Feb 2017 14:16:28 +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: <1487254583.3a9d5d6444a89b5da5889e12454ce98d94a79140.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/compiler-rt-sanitizers/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0_rc2.ebuild sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild X-VCS-Directories: sys-libs/compiler-rt-sanitizers/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 3a9d5d6444a89b5da5889e12454ce98d94a79140 X-VCS-Branch: master Date: Thu, 16 Feb 2017 14:16:28 +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-Archives-Salt: c56ac7b5-ecf4-4240-a547-7052edf6381d X-Archives-Hash: 0cfff8ebba0b62a0206d0ab9c5d716ce commit: 3a9d5d6444a89b5da5889e12454ce98d94a79140 Author: Michał Górny gentoo org> AuthorDate: Thu Feb 16 14:11:43 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Feb 16 14:16:23 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a9d5d64 sys-libs/compiler-rt-sanitizers: Use strip-unsupported-flags Use strip-unsupported-flags to strip flags not supported by clang instead of a hardcoded known-bad flag list. .../compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0_rc2.ebuild | 4 +++- sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0_rc2.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0_rc2.ebuild index 679d166d73..2c004b0a3a 100644 --- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0_rc2.ebuild +++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0_rc2.ebuild @@ -74,7 +74,9 @@ src_configure() { # same flags are passed for build & tests, so we need to strip # them down to a subset supported by clang - filter-flags -msahf -frecord-gcc-switches + CC=${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/bin/clang \ + CXX=${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/bin/clang++ \ + strip-unsupported-flags fi cmake-utils_src_configure diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild index 6e41986151..4d66c86e90 100644 --- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild +++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild @@ -80,7 +80,9 @@ src_configure() { # same flags are passed for build & tests, so we need to strip # them down to a subset supported by clang - filter-flags -msahf -frecord-gcc-switches + CC=${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/bin/clang \ + CXX=${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/bin/clang++ \ + strip-unsupported-flags fi cmake-utils_src_configure