Skip to content

Commit a11e2d7

Browse files
committed
[libclc] Quote addition of CLC/LLAsm flags
Otherwise cmake will insert a semicolon if flags are already set. Differential Revision: https://reviews.llvm.org/D131490
1 parent 8f3fd26 commit a11e2d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libclc/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ set( LLVM_VERSION_DEFINE "-DHAVE_LLVM=0x${LLVM_MAJOR}0${LLVM_MINOR}" )
136136

137137
# LLVM 13 enables standard includes by default
138138
if( ${LLVM_VERSION} VERSION_GREATER "12.99.99" )
139-
set( CMAKE_LLAsm_FLAGS ${CMAKE_LLAsm_FLAGS} -cl-no-stdinc )
140-
set( CMAKE_CLC_FLAGS ${CMAKE_CLC_FLAGS} -cl-no-stdinc )
139+
set( CMAKE_LLAsm_FLAGS "${CMAKE_LLAsm_FLAGS} -cl-no-stdinc")
140+
set( CMAKE_CLC_FLAGS "${CMAKE_CLC_FLAGS} -cl-no-stdinc")
141141
endif()
142142

143143
enable_language( CLC LLAsm )

0 commit comments

Comments
 (0)