Skip to content
Snippets Groups Projects
Unverified Commit 2412c001 authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

Merge pull request #9612 from cladmi/pr/make/cflags/llvm

cflags.inc.mk: fix cflags test for llvm
parents c3f32182 a99dd332
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ endif ...@@ -28,7 +28,7 @@ endif
# Template for testing a compiler flag and adding it to CFLAGS (errors usually # Template for testing a compiler flag and adding it to CFLAGS (errors usually
# happens when using older toolchains which do not support the given flags) # happens when using older toolchains which do not support the given flags)
define cflags_test_and_add define cflags_test_and_add
ifeq ($(shell $(CC) $(1) -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0) ifeq ($(shell $(CC) -Werror $(1) -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
CFLAGS += $(1) CFLAGS += $(1)
endif endif
endef endef
......
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