forked from pool/libclc
Accepting request 1011271 from home:aaronpuchert:branches:X11:XOrg
- Fix build on Leap by adding "-Xclang -no-opaque-pointers" only for Clang 15 and newer. OBS-URL: https://build.opensuse.org/request/show/1011271 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libclc?expand=0&rev=52
This commit is contained in:
parent
460711e5f7
commit
e7d19a231e
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 16 17:31:22 UTC 2022 - Aaron Puchert <aaronpuchert@alice-dsl.net>
|
||||||
|
|
||||||
|
- Fix build on Leap by adding "-Xclang -no-opaque-pointers" only
|
||||||
|
for Clang 15 and newer.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 29 21:33:37 UTC 2022 - Aaron Puchert <aaronpuchert@alice-dsl.net>
|
Thu Sep 29 21:33:37 UTC 2022 - Aaron Puchert <aaronpuchert@alice-dsl.net>
|
||||||
|
|
||||||
|
@ -69,8 +69,10 @@ Library requirements of the OpenCL C programming language.
|
|||||||
%cmake \
|
%cmake \
|
||||||
-DCMAKE_C_COMPILER=clang \
|
-DCMAKE_C_COMPILER=clang \
|
||||||
-DCMAKE_CXX_COMPILER=clang++ \
|
-DCMAKE_CXX_COMPILER=clang++ \
|
||||||
|
%if %{_llvm_sonum} >= 15
|
||||||
-DCMAKE_CLC_FLAGS="-Xclang -no-opaque-pointers" \
|
-DCMAKE_CLC_FLAGS="-Xclang -no-opaque-pointers" \
|
||||||
-DCMAKE_LLAsm_FLAGS="-Xclang -no-opaque-pointers" \
|
-DCMAKE_LLAsm_FLAGS="-Xclang -no-opaque-pointers" \
|
||||||
|
%endif
|
||||||
-DENABLE_RUNTIME_SUBNORMAL:BOOL=ON \
|
-DENABLE_RUNTIME_SUBNORMAL:BOOL=ON \
|
||||||
-DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;amdgcn-mesa-mesa3d;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"
|
-DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;amdgcn-mesa-mesa3d;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
Loading…
Reference in New Issue
Block a user