Skip to content

Commit

Permalink
newlib.mk: use addprefix to declare all variables
Browse files Browse the repository at this point in the history
Taken out of #9415
  • Loading branch information
Toon Stegen authored and cladmi committed Jul 6, 2018
1 parent 7276ac5 commit 9d36929
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions makefiles/libc/newlib.mk
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,7 @@ ifeq ($(TOOLCHAIN),llvm)
endif

ifeq (1,$(USE_NEWLIB_NANO))
NEWLIB_NANO_INCLUDE_PATTERNS ?= \
$(NEWLIB_INCLUDE_DIR)/newlib-nano \
$(NEWLIB_INCLUDE_DIR)/newlib/nano \
$(NEWLIB_INCLUDE_DIR)/nano \
#
NEWLIB_NANO_INCLUDE_PATTERNS ?= $(addprefix $(NEWLIB_INCLUDE_DIR)/, newlib-nano newlib/nano nano)
NEWLIB_NANO_INCLUDE_DIR ?= $(firstword $(call dir_contains_newlib_h, $(NEWLIB_NANO_INCLUDE_PATTERNS)))

# newlib-nano overrides newlib.h and its include dir should therefore go before
Expand Down

0 comments on commit 9d36929

Please sign in to comment.