Skip to content
Snippets Groups Projects
Unverified Commit 18a4ccf3 authored by Gaëtan Harter's avatar Gaëtan Harter
Browse files

newlib.mk: fix NEWLIB_INCLUDE_DIR not being set by PATTERNS

As NEWLIB_INCLUDE_DIR has already been set here, with an empty value, it is not
overwriting it because of the '?='.
parent a946c2c5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment