summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/mesa/mesa-17.0.0.ebuild')
-rw-r--r--media-libs/mesa/mesa-17.0.0.ebuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/media-libs/mesa/mesa-17.0.0.ebuild b/media-libs/mesa/mesa-17.0.0.ebuild
index b35f0bc5ef27..d6d58afc0dd6 100644
--- a/media-libs/mesa/mesa-17.0.0.ebuild
+++ b/media-libs/mesa/mesa-17.0.0.ebuild
@@ -201,7 +201,9 @@ pkg_setup() {
ewarn "detected! This can cause problems. For details, see bug 459306."
fi
- LLVM_MAX_SLOT=4 llvm_pkg_setup
+ if use llvm || use opencl; then
+ LLVM_MAX_SLOT=4 llvm_pkg_setup
+ fi
python-any-r1_pkg_setup
}