From c8ef91fdb72e19c82c4d0a92b1a187e495e85b50 Mon Sep 17 00:00:00 2001 From: Tim Pambor Date: Wed, 18 Jun 2025 14:30:23 +0200 Subject: [PATCH] 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 --- cmake/toolchain/llvm/target.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmake/toolchain/llvm/target.cmake b/cmake/toolchain/llvm/target.cmake index 58c3b8ebbfc..d8684ef53d0 100644 --- a/cmake/toolchain/llvm/target.cmake +++ b/cmake/toolchain/llvm/target.cmake @@ -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)