[vlc-devel] [PATCH] contrib: Redirect stderr to stdout for clang check

Marvin Scholz epirat07 at gmail.com
Fri May 31 22:35:15 CEST 2019


This prevents confusing messages on stderr like:

"Configured with: …"
---
 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 8944a5a1d7..97c3a8ab8a 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>&1)),)
 HAVE_CLANG := 1
 endif
 
-- 
2.20.1 (Apple Git-117)



More information about the vlc-devel mailing list