Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
d4bdac7e
Unverified
Commit
d4bdac7e
authored
6 years ago
by
Martine Lenders
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #9513 from cladmi/pr/make/llvm/nano
newlib.mk: llvm, fix newlib-nano header not used
parents
0a4a3595
f8e1419a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
makefiles/libc/newlib.mk
+7
-7
7 additions, 7 deletions
makefiles/libc/newlib.mk
with
7 additions
and
7 deletions
makefiles/libc/newlib.mk
+
7
−
7
View file @
d4bdac7e
...
@@ -69,6 +69,13 @@ ifeq ($(TOOLCHAIN),llvm)
...
@@ -69,6 +69,13 @@ ifeq ($(TOOLCHAIN),llvm)
# in case some header is missing from the cross tool chain
# in case some header is missing from the cross tool chain
NEWLIB_INCLUDES
:=
-isystem
$(
NEWLIB_INCLUDE_DIR
)
-nostdinc
NEWLIB_INCLUDES
:=
-isystem
$(
NEWLIB_INCLUDE_DIR
)
-nostdinc
NEWLIB_INCLUDES
+=
$(
addprefix
-isystem
,
$(
abspath
$(
wildcard
$(
dir
$(
NEWLIB_INCLUDE_DIR
))
/usr/include
)))
NEWLIB_INCLUDES
+=
$(
addprefix
-isystem
,
$(
abspath
$(
wildcard
$(
dir
$(
NEWLIB_INCLUDE_DIR
))
/usr/include
)))
# Newlib includes should go before GCC includes. This is especially important
# when using Clang, because Clang will yield compilation errors on some GCC-
# bundled headers. Clang compatible versions of those headers are already
# provided by Newlib, so placing this directory first will eliminate those problems.
# The above problem was observed with LLVM 3.9.1 when building against GCC 6.3.0 headers.
INCLUDES
:=
$(
NEWLIB_INCLUDES
)
$(
INCLUDES
)
endif
endif
ifeq
(1,$(USE_NEWLIB_NANO))
ifeq
(1,$(USE_NEWLIB_NANO))
...
@@ -79,10 +86,3 @@ ifeq (1,$(USE_NEWLIB_NANO))
...
@@ -79,10 +86,3 @@ ifeq (1,$(USE_NEWLIB_NANO))
# the regular system include dirs.
# the regular system include dirs.
INCLUDES
:=
-isystem
$(
NEWLIB_NANO_INCLUDE_DIR
)
$(
INCLUDES
)
INCLUDES
:=
-isystem
$(
NEWLIB_NANO_INCLUDE_DIR
)
$(
INCLUDES
)
endif
endif
# Newlib includes should go before GCC includes. This is especially important
# when using Clang, because Clang will yield compilation errors on some GCC-
# bundled headers. Clang compatible versions of those headers are already
# provided by Newlib, so placing this directory first will eliminate those problems.
# The above problem was observed with LLVM 3.9.1 when building against GCC 6.3.0 headers.
export
INCLUDES
:=
$(
NEWLIB_INCLUDES
)
$(
INCLUDES
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment