[vlc-commits] contrib: make HAVE_CLANG a global define
Konstantin Pavlov
git at videolan.org
Wed May 22 12:25:37 CEST 2019
vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Wed May 22 12:44:30 2019 +0300| [f1329f28288612aac344b6f40edb950e303d55fe] | committer: Konstantin Pavlov
contrib: make HAVE_CLANG a global define
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f1329f28288612aac344b6f40edb950e303d55fe
---
contrib/src/main.mak | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index eac95b9112..8944a5a1d7 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -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
More information about the vlc-commits
mailing list