Skip to content

Commit c8ef91f

Browse files
tpamborcarlescufi
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 6f8e620 commit c8ef91f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cmake/toolchain/llvm/target.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,5 @@ elseif(CONFIG_COMPILER_RT_RTLIB)
5555
set(runtime_lib "compiler_rt")
5656
endif()
5757

58-
list(APPEND TOOLCHAIN_C_FLAGS --config
59-
${ZEPHYR_BASE}/cmake/toolchain/llvm/clang_${runtime_lib}.cfg)
60-
list(APPEND TOOLCHAIN_LD_FLAGS --config
61-
${ZEPHYR_BASE}/cmake/toolchain/llvm/clang_${runtime_lib}.cfg)
58+
list(APPEND TOOLCHAIN_C_FLAGS --config=${ZEPHYR_BASE}/cmake/toolchain/llvm/clang_${runtime_lib}.cfg)
59+
list(APPEND TOOLCHAIN_LD_FLAGS --config=${ZEPHYR_BASE}/cmake/toolchain/llvm/clang_${runtime_lib}.cfg)

0 commit comments

Comments
 (0)