Merge pull request #11145 from kaspar030/test_newlib_nano_path_empty
make: newlib: check if newlib nano folder was found
This commit is contained in:
commit
f7cdbdaab0
@ -93,6 +93,11 @@ ifeq (1,$(USE_NEWLIB_NANO))
|
|||||||
NEWLIB_NANO_INCLUDE_DIR ?= $(firstword $(wildcard $(NEWLIB_INCLUDE_DIR)/newlib-nano \
|
NEWLIB_NANO_INCLUDE_DIR ?= $(firstword $(wildcard $(NEWLIB_INCLUDE_DIR)/newlib-nano \
|
||||||
$(NEWLIB_INCLUDE_DIR)/newlib/nano \
|
$(NEWLIB_INCLUDE_DIR)/newlib/nano \
|
||||||
$(NEWLIB_INCLUDE_DIR)/nano))
|
$(NEWLIB_INCLUDE_DIR)/nano))
|
||||||
|
|
||||||
|
ifeq (,$(NEWLIB_NANO_INCLUDE_DIR))
|
||||||
|
$(error USE_NEWLIB_NANO==1 but nano include folder not found!)
|
||||||
|
endif
|
||||||
|
|
||||||
# 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