[vlc-commits] contrib: make HAVE_CLANG a global define
Konstantin Pavlov
git at videolan.org
Wed May 22 13:27:52 CEST 2019
vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Wed May 22 12:44:30 2019 +0300| [279768570763f8c0d8c3dfb3c4cc94f0fba09388] | committer: Konstantin Pavlov
contrib: make HAVE_CLANG a global define
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=279768570763f8c0d8c3dfb3c4cc94f0fba09388
---
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