mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
fix(compiler-rt): avoid duplicate builtins dir on sim
compiler-rt/Make.defs:45: target `bin/compiler-rt/compiler-rt/lib/builtins' given more than once in the same rule. compiler-rt/Make.defs:45: target `kbin/compiler-rt/compiler-rt/lib/builtins' given more than once in the same rule. Signed-off-by: bijunda <bijunda@bytedance.com>
This commit is contained in:
parent
31c7409d80
commit
1076cb933d
1 changed files with 8 additions and 2 deletions
|
|
@ -36,9 +36,12 @@ COMPILER_RT_OBJDIR = compiler-rt \
|
|||
compiler-rt/compiler-rt \
|
||||
compiler-rt/compiler-rt/lib \
|
||||
compiler-rt/compiler-rt/lib/builtins \
|
||||
compiler-rt/compiler-rt/lib/builtins/$(ARCH) \
|
||||
compiler-rt/compiler-rt/lib/profile
|
||||
|
||||
ifneq ($(ARCH),)
|
||||
COMPILER_RT_OBJDIR += compiler-rt/compiler-rt/lib/builtins/$(ARCH)
|
||||
endif
|
||||
|
||||
BIN_OBJDIR = $(addprefix $(BINDIR)$(DELIM),$(COMPILER_RT_OBJDIR))
|
||||
KBIN_OBJDIR = $(addprefix $(KBINDIR)$(DELIM),$(COMPILER_RT_OBJDIR))
|
||||
|
||||
|
|
@ -80,13 +83,16 @@ endif
|
|||
ifeq ($(CONFIG_BUILTIN_COMPILER_RT),y)
|
||||
|
||||
FLAGS += ${INCDIR_PREFIX}$(CURDIR)/compiler-rt/compiler-rt/lib/builtins
|
||||
FLAGS += ${INCDIR_PREFIX}$(CURDIR)/compiler-rt/compiler-rt/lib/builtins/${ARCH}
|
||||
|
||||
FLAGS += -Wno-undef -Wno-macro-redefined
|
||||
|
||||
CSRCS += $(wildcard compiler-rt/compiler-rt/lib/builtins/*.c)
|
||||
|
||||
ifneq ($(ARCH),)
|
||||
FLAGS += ${INCDIR_PREFIX}$(CURDIR)/compiler-rt/compiler-rt/lib/builtins/${ARCH}
|
||||
ASRCS += $(wildcard compiler-rt/compiler-rt/lib/builtins/$(ARCH)/*.S)
|
||||
CSRCS += $(wildcard compiler-rt/compiler-rt/lib/builtins/$(ARCH)/*.c)
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_LIB_COMPILER_RT_HAS_BFLOAT16),)
|
||||
BFLOAT16_SRCS := compiler-rt/compiler-rt/lib/builtins/truncdfbf2.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue