[vlc-devel] [PATCH v3 9/9] contrib: Discard stderr when checking for clang
Marvin Scholz
epirat07 at gmail.com
Fri Jun 7 14:52:23 CEST 2019
When clang is called with the gcc alias with --version it would lead to
printing "Configured with:…" info to stderr, causing confusing output
in the bootstrap script and make runs.
---
contrib/src/main.mak | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 13110be845..45044c3aa5 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -175,7 +175,7 @@ EXTRA_CFLAGS += -DWINSTORECOMPAT
EXTRA_LDFLAGS += -lwinstorecompat
endif
-ifneq ($(findstring clang, $(shell $(CC) --version)),)
+ifneq ($(findstring clang, $(shell $(CC) --version 2>/dev/null)),)
HAVE_CLANG := 1
endif
--
2.20.1 (Apple Git-117)
More information about the vlc-devel
mailing list