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

Steve Lhomme robux4 at ycbcr.xyz
Mon Nov 5 10:32:40 CET 2018


On 05/11/2018 10:07, Martin Storsjö wrote:
> 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.

No objection but why don't they use mingw32 ?

> ---
>   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
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list