This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new bc8cf2c501 arch/arm/armv7-m: Fix error link argument for compiler-rt
bc8cf2c501 is described below

commit bc8cf2c5016b922d7531b63035f91fc8a0548832
Author: Huang Qi <huang...@xiaomi.com>
AuthorDate: Tue Jun 28 15:50:50 2022 +0800

    arch/arm/armv7-m: Fix error link argument for compiler-rt
    
    Fix:
    ```
    ld.lld: error: unknown argument 
'-/home/huang/Work/vwear/prebuilts/clang/linux/arm/bin/../lib/clang-runtimes/armv7em_hard_fpv4_sp_d16/lib/libclang_rt.builtins-armv7em.a'
    ```
    
    Signed-off-by: Huang Qi <huang...@xiaomi.com>
---
 arch/arm/src/armv7-m/Toolchain.defs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/armv7-m/Toolchain.defs 
b/arch/arm/src/armv7-m/Toolchain.defs
index d71cf11bf4..60a3baf624 100644
--- a/arch/arm/src/armv7-m/Toolchain.defs
+++ b/arch/arm/src/armv7-m/Toolchain.defs
@@ -268,7 +268,7 @@ ifeq ($(CONFIG_ARMV7M_TOOLCHAIN),CLANG)
   ifeq ($(wildcard $(COMPILER_RT_LIB)),)
     # if "--print-libgcc-file-name" unable to find the correct libgcc PATH
     # then go ahead and try "--print-file-name"
-    COMPILER_RT_LIB := -$(wildcard $(shell $(CC) $(ARCHCPUFLAGS) 
--print-file-name $(notdir $(COMPILER_RT_LIB))))
+    COMPILER_RT_LIB := $(wildcard $(shell $(CC) $(ARCHCPUFLAGS) 
--print-file-name $(notdir $(COMPILER_RT_LIB))))
   endif
 endif
 

Reply via email to