1 |
commit: 8720263cf7e75d8fc264ba028a76f7236b09f067 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 16 08:57:59 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 16 08:58:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8720263c |
7 |
|
8 |
sys-devel/clang: Disable CUDA target autodetection |
9 |
|
10 |
CUDA target autodetection causes sandbox failures, and even if it did |
11 |
not, it would cause the package to be set for build host's video card. |
12 |
Force the CUDA package detection to fail, in order to disable that. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/760645 |
15 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
16 |
|
17 |
sys-devel/clang/clang-12.0.0.9999.ebuild | 3 +++ |
18 |
sys-devel/clang/clang-12.0.0.ebuild | 3 +++ |
19 |
sys-devel/clang/clang-13.0.0.9999.ebuild | 3 +++ |
20 |
3 files changed, 9 insertions(+) |
21 |
|
22 |
diff --git a/sys-devel/clang/clang-12.0.0.9999.ebuild b/sys-devel/clang/clang-12.0.0.9999.ebuild |
23 |
index f0164c6eaea..bd58b0be005 100644 |
24 |
--- a/sys-devel/clang/clang-12.0.0.9999.ebuild |
25 |
+++ b/sys-devel/clang/clang-12.0.0.9999.ebuild |
26 |
@@ -258,6 +258,9 @@ multilib_src_configure() { |
27 |
# furthermore, it provides only syntax checking |
28 |
-DCLANG_DEFAULT_OPENMP_RUNTIME=libomp |
29 |
|
30 |
+ # disable using CUDA to autodetect GPU, just build for all |
31 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_CUDA=ON |
32 |
+ |
33 |
# override default stdlib and rtlib |
34 |
-DCLANG_DEFAULT_CXX_STDLIB=$(usex default-libcxx libc++ "") |
35 |
-DCLANG_DEFAULT_RTLIB=$(usex default-compiler-rt compiler-rt "") |
36 |
|
37 |
diff --git a/sys-devel/clang/clang-12.0.0.ebuild b/sys-devel/clang/clang-12.0.0.ebuild |
38 |
index d983e2ed06f..5feec724ffc 100644 |
39 |
--- a/sys-devel/clang/clang-12.0.0.ebuild |
40 |
+++ b/sys-devel/clang/clang-12.0.0.ebuild |
41 |
@@ -258,6 +258,9 @@ multilib_src_configure() { |
42 |
# furthermore, it provides only syntax checking |
43 |
-DCLANG_DEFAULT_OPENMP_RUNTIME=libomp |
44 |
|
45 |
+ # disable using CUDA to autodetect GPU, just build for all |
46 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_CUDA=ON |
47 |
+ |
48 |
# override default stdlib and rtlib |
49 |
-DCLANG_DEFAULT_CXX_STDLIB=$(usex default-libcxx libc++ "") |
50 |
-DCLANG_DEFAULT_RTLIB=$(usex default-compiler-rt compiler-rt "") |
51 |
|
52 |
diff --git a/sys-devel/clang/clang-13.0.0.9999.ebuild b/sys-devel/clang/clang-13.0.0.9999.ebuild |
53 |
index f0164c6eaea..bd58b0be005 100644 |
54 |
--- a/sys-devel/clang/clang-13.0.0.9999.ebuild |
55 |
+++ b/sys-devel/clang/clang-13.0.0.9999.ebuild |
56 |
@@ -258,6 +258,9 @@ multilib_src_configure() { |
57 |
# furthermore, it provides only syntax checking |
58 |
-DCLANG_DEFAULT_OPENMP_RUNTIME=libomp |
59 |
|
60 |
+ # disable using CUDA to autodetect GPU, just build for all |
61 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_CUDA=ON |
62 |
+ |
63 |
# override default stdlib and rtlib |
64 |
-DCLANG_DEFAULT_CXX_STDLIB=$(usex default-libcxx libc++ "") |
65 |
-DCLANG_DEFAULT_RTLIB=$(usex default-compiler-rt compiler-rt "") |