mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
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
|
||||
|
||||
ifneq (,$(filter printf_float,$(USEMODULE)))
|
||||
ifeq (1,$(USE_NANO_SPECS))
|
||||
ifneq (,$(filter newlib_nano,$(USEMODULE)))
|
||||
export LINKFLAGS += -u _printf_float
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq (,$(filter scanf_float,$(USEMODULE)))
|
||||
ifeq (1,$(USE_NANO_SPECS))
|
||||
ifneq (,$(filter newlib_nano,$(USEMODULE)))
|
||||
export LINKFLAGS += -u _scanf_float
|
||||
endif
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user