From 5339c2a3f20e99ad1b0eae0e7de3f82a180b7fc4 Mon Sep 17 00:00:00 2001 From: Sebastian Wezel Date: Thu, 20 Feb 2025 10:45:29 +0100 Subject: [PATCH] cmake: llvm: fix --config param This fixes 'error: unknown argument: '--config/home/ncs/toolchains/86896046f0/opt/zephyr-sdk/cmake/zephyr/llvm/clang_compiler_rt.cfg Signed-off-by: Sebastian Wezel --- cmake/zephyr/llvm/target.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmake/zephyr/llvm/target.cmake b/cmake/zephyr/llvm/target.cmake index 07f51a02..c684fddd 100644 --- a/cmake/zephyr/llvm/target.cmake +++ b/cmake/zephyr/llvm/target.cmake @@ -37,7 +37,5 @@ if(DEFINED triple) unset(triple) endif() -list(APPEND TOOLCHAIN_C_FLAGS --config - ${ZEPHYR_SDK_INSTALL_DIR}/cmake/zephyr/llvm/clang_compiler_rt.cfg) -list(APPEND TOOLCHAIN_LD_FLAGS --config - ${ZEPHYR_SDK_INSTALL_DIR}/cmake/zephyr/llvm/clang_compiler_rt.cfg) +list(APPEND TOOLCHAIN_C_FLAGS "--config=${ZEPHYR_SDK_INSTALL_DIR}/cmake/zephyr/llvm/clang_compiler_rt.cfg") +list(APPEND TOOLCHAIN_LD_FLAGS "--config=${ZEPHYR_SDK_INSTALL_DIR}/cmake/zephyr/llvm/clang_compiler_rt.cfg")