Skip to content

Commit

Permalink
Merge pull request #11145 from kaspar030/test_newlib_nano_path_empty
Browse files Browse the repository at this point in the history
make: newlib: check if newlib nano folder was found
  • Loading branch information
jcarrano authored Mar 11, 2019
2 parents 4dcd958 + 87326c7 commit f7cdbda
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions makefiles/libc/newlib.mk
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ ifeq (1,$(USE_NEWLIB_NANO))
NEWLIB_NANO_INCLUDE_DIR ?= $(firstword $(wildcard $(NEWLIB_INCLUDE_DIR)/newlib-nano \
$(NEWLIB_INCLUDE_DIR)/newlib/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
# the regular system include dirs.
INCLUDES := -isystem $(NEWLIB_NANO_INCLUDE_DIR) $(INCLUDES)
Expand Down

0 comments on commit f7cdbda

Please sign in to comment.