newlib-nano: add include directory
The newlib-nano include directory can be named either newlib-nano or nano, so we should make sure it is added in both cases.
This commit is contained in:
parent
6f5db1c954
commit
88aaa62364
@ -64,7 +64,8 @@ ifeq ($(TOOLCHAIN),llvm)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (1,$(USE_NEWLIB_NANO))
|
ifeq (1,$(USE_NEWLIB_NANO))
|
||||||
NEWLIB_NANO_INCLUDE_DIR ?= $(NEWLIB_INCLUDE_DIR)/newlib-nano
|
# newlib-nano include directory is called either newlib-nano or nano. Use the one we find first.
|
||||||
|
NEWLIB_NANO_INCLUDE_DIR ?= $(firstword $(wildcard $(addprefix $(NEWLIB_INCLUDE_DIR)/, newlib-nano nano)))
|
||||||
# newlib-nano overrides newlib.h and its include dir should therefore go before
|
# newlib-nano overrides newlib.h and its include dir should therefore go before
|
||||||
# the regular system include dirs.
|
# the regular system include dirs.
|
||||||
INCLUDES := -isystem $(NEWLIB_NANO_INCLUDE_DIR) $(INCLUDES)
|
INCLUDES := -isystem $(NEWLIB_NANO_INCLUDE_DIR) $(INCLUDES)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user