[vlc-devel] [PATCH] contrib: Treat windows-gnu as an alias for mingw32

Martin Storsjö martin at martin.st
Mon Nov 5 10:07:13 CET 2018


LLVM internally normalizes the "mingw32" part of a triplet into
windows-gnu, and when detecting the toolchain with $CC -dumpmachine,
this wouldn't match the rest of contribs' rules for detecting a
supported windows environment.

This allows building contribs with llvm-mingw as the native compiler.
---
 contrib/bootstrap | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/bootstrap b/contrib/bootstrap
index e404d8a..763a136 100755
--- a/contrib/bootstrap
+++ b/contrib/bootstrap
@@ -120,7 +120,7 @@ fi
 if test -z "$BUILD"
 then
 	echo -n "Guessing build system... "
-	BUILD="`${CC:-cc} -dumpmachine`"
+	BUILD="`${CC:-cc} -dumpmachine | sed s/windows-gnu/mingw32/`"
 	if test -z "$BUILD"; then
 		echo "FAIL!"
 		exit 1
-- 
2.7.4



More information about the vlc-devel mailing list