From 200a8041413e24c790443e0a36b0fbec3325bbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Wed, 23 Aug 2023 11:39:19 +0200 Subject: [PATCH] llvm: use proper syntax for --config option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use proper --config= syntax instead of --config as the latter can cause issues in some situations. Signed-off-by: Benjamin Cabé --- cmake/toolchain/llvm/target.cmake | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cmake/toolchain/llvm/target.cmake b/cmake/toolchain/llvm/target.cmake index 380972291254da..c3324a19d44e27 100644 --- a/cmake/toolchain/llvm/target.cmake +++ b/cmake/toolchain/llvm/target.cmake @@ -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" + )