Skip to content

Commit 330d8f4

Browse files
tpamborstephanosio
authored andcommitted
cmake: llvm: Use '=' for --config to improve compatibility
Replaces space with an equal sign when assigning the clang configuration file to the --config parameter. This change improves compatibility with tools that parse the compilation database and expect compiler arguments to be separated by space. Signed-off-by: Tim Pambor <[email protected]>
1 parent 2f787ec commit 330d8f4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cmake/zephyr/llvm/target.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,5 @@ if(DEFINED triple)
3737
unset(triple)
3838
endif()
3939

40-
list(APPEND TOOLCHAIN_C_FLAGS --config
41-
${ZEPHYR_SDK_INSTALL_DIR}/cmake/zephyr/llvm/clang_compiler_rt.cfg)
42-
list(APPEND TOOLCHAIN_LD_FLAGS --config
43-
${ZEPHYR_SDK_INSTALL_DIR}/cmake/zephyr/llvm/clang_compiler_rt.cfg)
40+
list(APPEND TOOLCHAIN_C_FLAGS --config=${ZEPHYR_SDK_INSTALL_DIR}/cmake/zephyr/llvm/clang_compiler_rt.cfg)
41+
list(APPEND TOOLCHAIN_LD_FLAGS --config=${ZEPHYR_SDK_INSTALL_DIR}/cmake/zephyr/llvm/clang_compiler_rt.cfg)

0 commit comments

Comments
 (0)