Merge pull request #6752 from smlng/llvm/pkgs_set_cflags
LLVM toolchain: set CFLAGS for pkgs
This commit is contained in:
commit
a4cc6ad80d
@ -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
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user