diff options
author | Nikita Popov <npopov@redhat.com> | 2022-08-09 14:43:25 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-08-31 11:10:24 +0200 |
commit | a11e2d7366a11385e23d142ac93065a861b70a16 (patch) | |
tree | 2cb670e5d4b940bea7a423ecf95b591cfe40451b /libclc/CMakeLists.txt | |
parent | 8f3fd26b74a7f5eb9892556511bae8f70a3597dc (diff) | |
download | llvm-a11e2d7366a11385e23d142ac93065a861b70a16.zip llvm-a11e2d7366a11385e23d142ac93065a861b70a16.tar.gz llvm-a11e2d7366a11385e23d142ac93065a861b70a16.tar.bz2 |
[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/CMakeLists.txt')
-rw-r--r-- | libclc/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt index 9773b2c..96519e0 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 ) |