From e7d19a231e7012241c84ef7085aa6ce794ba7233fdf1a6374b9db9750d74b460 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Sun, 16 Oct 2022 19:54:41 +0000 Subject: [PATCH] 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 --- libclc.changes | 6 ++++++ libclc.spec | 2 ++ 2 files changed, 8 insertions(+) diff --git a/libclc.changes b/libclc.changes index 69fecce..4472421 100644 --- a/libclc.changes +++ b/libclc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Oct 16 17:31:22 UTC 2022 - Aaron Puchert + +- 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 diff --git a/libclc.spec b/libclc.spec index 3bece5b..cabf3df 100644 --- a/libclc.spec +++ b/libclc.spec @@ -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