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" + )