Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clang/cmake: Fix clang cmake can't find libgcc, align with makefile
makefile: ifeq ($(CONFIG_BUILTIN_TOOLCHAIN),y) COMPILER_RT_LIB = $(shell $(CC) $(ARCHCPUFLAGS) --print-libgcc-file-name) ifeq ($(CONFIG_ARCH_TOOLCHAIN_CLANG),y) 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)))) endif endif endif Signed-off-by: wangmingrong1 <[email protected]>
- Loading branch information