Browse Source

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 <tim.pambor@codewrights.de>
pull/91962/head
Tim Pambor 3 weeks ago committed by Carles Cufí
parent
commit
c8ef91fdb7
  1. 6
      cmake/toolchain/llvm/target.cmake

6
cmake/toolchain/llvm/target.cmake

@ -55,7 +55,5 @@ elseif(CONFIG_COMPILER_RT_RTLIB) @@ -55,7 +55,5 @@ elseif(CONFIG_COMPILER_RT_RTLIB)
set(runtime_lib "compiler_rt")
endif()
list(APPEND TOOLCHAIN_C_FLAGS --config
${ZEPHYR_BASE}/cmake/toolchain/llvm/clang_${runtime_lib}.cfg)
list(APPEND TOOLCHAIN_LD_FLAGS --config
${ZEPHYR_BASE}/cmake/toolchain/llvm/clang_${runtime_lib}.cfg)
list(APPEND TOOLCHAIN_C_FLAGS --config=${ZEPHYR_BASE}/cmake/toolchain/llvm/clang_${runtime_lib}.cfg)
list(APPEND TOOLCHAIN_LD_FLAGS --config=${ZEPHYR_BASE}/cmake/toolchain/llvm/clang_${runtime_lib}.cfg)

Loading…
Cancel
Save