SHA256
1
0
forked from pool/libclc
libclc/cmake-flags-concat.patch
Stefan Dirsch 460711e5f7 Accepting request 1008002 from home:aaronpuchert:llvm-next
- Update to version 0.2.0+llvm15.0.0.
- Compile without opaque pointers for now because Mesa doesn't
  support them yet.
- Add cmake-flags-concat.patch to ensure proper concatenation of
  build flags: CMAKE_<LANG>_FLAGS is a string and not a list.

OBS-URL: https://build.opensuse.org/request/show/1008002
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libclc?expand=0&rev=50
2022-10-05 08:01:34 +00:00

16 lines
605 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9773b2c..e1879a9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -136,8 +136,8 @@ set( LLVM_VERSION_DEFINE "-DHAVE_LLVM=0x${LLVM_MAJOR}0${LLVM_MINOR}" )
# LLVM 13 enables standard includes by default
if( ${LLVM_VERSION} VERSION_GREATER "12.99.99" )
- set( CMAKE_LLAsm_FLAGS ${CMAKE_LLAsm_FLAGS} -cl-no-stdinc )
- set( CMAKE_CLC_FLAGS ${CMAKE_CLC_FLAGS} -cl-no-stdinc )
+ set( CMAKE_LLAsm_FLAGS "${CMAKE_LLAsm_FLAGS} -cl-no-stdinc" )
+ set( CMAKE_CLC_FLAGS "${CMAKE_CLC_FLAGS} -cl-no-stdinc" )
endif()
enable_language( CLC LLAsm )