Skip to content

Commit

Permalink
newlib.mk: fix NEWLIB_INCLUDE_DIR not being set by PATTERNS
Browse files Browse the repository at this point in the history
As NEWLIB_INCLUDE_DIR has already been set here, with an empty value, it is not
overwriting it because of the '?='.
  • Loading branch information
cladmi committed Aug 2, 2018
1 parent a946c2c commit 18a4ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makefiles/libc/newlib.mk
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ifeq (,$(NEWLIB_INCLUDE_DIR))
# the patterns above. We use the -isystem gcc/clang argument to add the include
# directories as system include directories, which means they will not be
# searched until after all the project specific include directories (-I/path)
NEWLIB_INCLUDE_DIR ?= $(firstword $(dir $(wildcard $(addsuffix /newlib.h, $(NEWLIB_INCLUDE_PATTERNS)))))
NEWLIB_INCLUDE_DIR := $(firstword $(dir $(wildcard $(addsuffix /newlib.h, $(NEWLIB_INCLUDE_PATTERNS)))))
endif

# If nothing was found we will try to fall back to searching for a cross-gcc in
Expand Down

0 comments on commit 18a4ccf

Please sign in to comment.