Skip to content

Commit

Permalink
llvm: use proper syntax for --config option
Browse files Browse the repository at this point in the history
Use proper --config= syntax instead of --config as the latter can cause
issues in some situations.

Signed-off-by: Benjamin Cabé <[email protected]>
  • Loading branch information
kartben authored and fabiobaltieri committed Aug 23, 2023
1 parent 11e2c58 commit 577d47f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cmake/toolchain/llvm/target.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ 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"
)

0 comments on commit 577d47f

Please sign in to comment.