summaryrefslogtreecommitdiff
path: root/libclc
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-08-09 14:43:25 +0200
committerNikita Popov <npopov@redhat.com>2022-08-31 11:10:24 +0200
commita11e2d7366a11385e23d142ac93065a861b70a16 (patch)
tree2cb670e5d4b940bea7a423ecf95b591cfe40451b /libclc
parent8f3fd26b74a7f5eb9892556511bae8f70a3597dc (diff)
downloadllvm-a11e2d7366a11385e23d142ac93065a861b70a16.tar.gz
[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
Diffstat (limited to 'libclc')
-rw-r--r--libclc/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
index 9773b2cc925f..96519e09e28e 100644
--- a/libclc/CMakeLists.txt
+++ b/libclc/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 )