sys/Makefile.include: check for newlib_nano instead of USE_NANO_SPECS
Check for the usage of `newlib_nano` module instead of the `USE_NANO_SPECS` variable. This allows also benefiting from the `printf_float` and `scanf_float` behaviour on `arm7` and `riscv` cpus.
This commit is contained in:
parent
294fb38381
commit
225b50c423
@ -72,13 +72,13 @@ ifneq (,$(filter arduino,$(USEMODULE)))
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter printf_float,$(USEMODULE)))
|
ifneq (,$(filter printf_float,$(USEMODULE)))
|
||||||
ifeq (1,$(USE_NANO_SPECS))
|
ifneq (,$(filter newlib_nano,$(USEMODULE)))
|
||||||
export LINKFLAGS += -u _printf_float
|
export LINKFLAGS += -u _printf_float
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter scanf_float,$(USEMODULE)))
|
ifneq (,$(filter scanf_float,$(USEMODULE)))
|
||||||
ifeq (1,$(USE_NANO_SPECS))
|
ifneq (,$(filter newlib_nano,$(USEMODULE)))
|
||||||
export LINKFLAGS += -u _scanf_float
|
export LINKFLAGS += -u _scanf_float
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user