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
a4cc6ad8
Commit
a4cc6ad8
authored
8 years ago
by
Sebastian Meiling
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #6752 from smlng/llvm/pkgs_set_cflags
LLVM toolchain: set CFLAGS for pkgs
parents
cdf7a046
53b0dd17
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile.include
+6
-1
6 additions, 1 deletion
Makefile.include
pkg/oonf_api/Makefile.include
+2
-2
2 additions, 2 deletions
pkg/oonf_api/Makefile.include
pkg/tinydtls/Makefile.include
+1
-1
1 addition, 1 deletion
pkg/tinydtls/Makefile.include
with
9 additions
and
4 deletions
Makefile.include
+
6
−
1
View file @
a4cc6ad8
...
@@ -153,7 +153,12 @@ ifneq (0,$(shell test -d $(RIOTBOARD)/$(BOARD); echo $$?))
...
@@ -153,7 +153,12 @@ ifneq (0,$(shell test -d $(RIOTBOARD)/$(BOARD); echo $$?))
endif
endif
# Use TOOLCHAIN environment variable to select the toolchain to use.
# Use TOOLCHAIN environment variable to select the toolchain to use.
# Default: gnu
# Default for macOS: llvm; for other OS: gnu
ifeq
($(BOARD),native)
ifeq
($(OS),Darwin)
TOOLCHAIN
?=
llvm
endif
endif
TOOLCHAIN
?=
gnu
TOOLCHAIN
?=
gnu
# TOOLCHAIN = clang is an alias for TOOLCHAIN = llvm
# TOOLCHAIN = clang is an alias for TOOLCHAIN = llvm
...
...
This diff is collapsed.
Click to expand it.
pkg/oonf_api/Makefile.include
+
2
−
2
View file @
a4cc6ad8
INCLUDES
+=
-I
$(
PKGDIRBASE
)
/oonf_api/src-api
INCLUDES
+=
-I
$(
PKGDIRBASE
)
/oonf_api/src-api
ifeq
($(
shell uname -s),Darwin
)
ifeq
($(
TOOLCHAIN), llvm
)
CFLAGS
+=
-Wno-
reserved-i
d-macro
-Wno-
keyword-macro
CFLAGS
+=
-Wno-
keywor
d-macro
-Wno-
parentheses-equality
endif
endif
This diff is collapsed.
Click to expand it.
pkg/tinydtls/Makefile.include
+
1
−
1
View file @
a4cc6ad8
...
@@ -2,7 +2,7 @@ PKG_BUILDDIR ?= $(PKGDIRBASE)/tinydtls
...
@@ -2,7 +2,7 @@ PKG_BUILDDIR ?= $(PKGDIRBASE)/tinydtls
INCLUDES
+=
-I
$(
PKG_BUILDDIR
)
INCLUDES
+=
-I
$(
PKG_BUILDDIR
)
ifeq
($(
shell uname -s),Darwin
)
ifeq
($(
TOOLCHAIN), llvm
)
CFLAGS
+=
-Wno-gnu-zero-variadic-macro-arguments
-Wno-unused-function
CFLAGS
+=
-Wno-gnu-zero-variadic-macro-arguments
-Wno-unused-function
endif
endif
...
...
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