mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
libm/newlib: Include fenv sources for all ARCHs and extend x86 includes
newlib/libm/fenv/*.c are the non-functional implementation that should be overridden by an architecture specific implementation in newlib/libm/machine/ARCH. Make the architecture check for including shared x86 sys headers for x86 and x86_64. Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
This commit is contained in:
@@ -88,12 +88,11 @@ VPATH += :newlib/newlib/newlib/libm/complex
|
||||
DEPPATH += --dep-path newlib/newlib/newlib/libm/common
|
||||
DEPPATH += --dep-path newlib/newlib/newlib/libm/complex
|
||||
|
||||
ifeq ($(CONFIG_ARCH_X86_64),y)
|
||||
CSRCS += $(wildcard newlib/newlib/newlib/libm/fenv/*.c)
|
||||
VPATH += :newlib/newlib/newlib/libm/fenv
|
||||
DEPPATH += --dep-path newlib/newlib/newlib/libm/fenv
|
||||
|
||||
|
||||
ifneq ($(CONFIG_ARCH_X86_64)$(CONFIG_ARCH_X86),)
|
||||
CFLAGS += ${INCDIR_PREFIX}newlib/newlib/newlib/libc/machine/shared_x86/sys
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user