Commit 27976857 authored by Konstantin Pavlov's avatar Konstantin Pavlov

contrib: make HAVE_CLANG a global define

parent e7717880
......@@ -158,9 +158,6 @@ endif
ifndef HAVE_CROSS_COMPILE
LN_S = cp -R
endif
ifneq ($(findstring clang, $(shell $(CC) --version)),)
HAVE_CLANG := 1
endif
endif
ifdef HAVE_SOLARIS
......@@ -178,6 +175,10 @@ EXTRA_CFLAGS += -DWINSTORECOMPAT
EXTRA_LDFLAGS += -lwinstorecompat
endif
ifneq ($(findstring clang, $(shell $(CC) --version)),)
HAVE_CLANG := 1
endif
cppcheck = $(shell $(CC) $(CFLAGS) -E -dM - < /dev/null | grep -E $(1))
EXTRA_CFLAGS += -I$(PREFIX)/include
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment