Skip to content
Snippets Groups Projects
Commit a4cc6ad8 authored by Sebastian Meiling's avatar Sebastian Meiling Committed by GitHub
Browse files

Merge pull request #6752 from smlng/llvm/pkgs_set_cflags

LLVM toolchain: set CFLAGS for pkgs
parents cdf7a046 53b0dd17
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,12 @@ ifneq (0,$(shell test -d $(RIOTBOARD)/$(BOARD); echo $$?))
endif
# 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 = clang is an alias for TOOLCHAIN = llvm
......
INCLUDES += -I$(PKGDIRBASE)/oonf_api/src-api
ifeq ($(shell uname -s),Darwin)
CFLAGS += -Wno-reserved-id-macro -Wno-keyword-macro
ifeq ($(TOOLCHAIN), llvm)
CFLAGS += -Wno-keyword-macro -Wno-parentheses-equality
endif
......@@ -2,7 +2,7 @@ PKG_BUILDDIR ?= $(PKGDIRBASE)/tinydtls
INCLUDES += -I$(PKG_BUILDDIR)
ifeq ($(shell uname -s),Darwin)
ifeq ($(TOOLCHAIN), llvm)
CFLAGS += -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function
endif
......
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