dev-util/perf: run llvm_pkg_setup only with USE=clang, bug #720376
authorGuilherme Amadio <amadio@gentoo.org>
Wed, 6 May 2020 08:03:33 +0000 (10:03 +0200)
committerGuilherme Amadio <amadio@gentoo.org>
Wed, 6 May 2020 08:25:38 +0000 (10:25 +0200)
Closes: https://bugs.gentoo.org/720376
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
dev-util/perf/perf-5.6.4.ebuild

index 3f1d4e665d10c5b216334919a270b52f0324ab3f..79a230faed363c3f8053fbc6c14b2e844c916554 100644 (file)
@@ -76,7 +76,7 @@ S="${S_K}/tools/perf"
 CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
 
 pkg_setup() {
-       LLVM_MAX_SLOT=9 llvm_pkg_setup
+       use clang && LLVM_MAX_SLOT=9 llvm_pkg_setup
 }
 
 src_unpack() {