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:
Stefan Dirsch 2022-10-16 19:54:41 +00:00 committed by Git OBS Bridge
parent 460711e5f7
commit e7d19a231e
2 changed files with 8 additions and 0 deletions

View File

@ -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>

View File

@ -69,8 +69,10 @@ Library requirements of the OpenCL C programming language.
%cmake \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
%if %{_llvm_sonum} >= 15
-DCMAKE_CLC_FLAGS="-Xclang -no-opaque-pointers" \
-DCMAKE_LLAsm_FLAGS="-Xclang -no-opaque-pointers" \
%endif
-DENABLE_RUNTIME_SUBNORMAL:BOOL=ON \
-DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;amdgcn-mesa-mesa3d;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"
%cmake_build