Commit a09019b7 authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Allow using clang as cross-compiler for multiple archs.

parent 449bdc33
...@@ -10354,15 +10354,14 @@ else $as_nop ...@@ -10354,15 +10354,14 @@ else $as_nop
if test "x$with_mingw" != xno if test "x$with_mingw" != xno
then then
test $HOST_ARCH = unknown || cross_archs=$HOST_ARCH test $HOST_ARCH = unknown || cross_archs=$HOST_ARCH
case "x$with_mingw" in
x|xyes) ;;
*) eval "${cross_archs}_CC=\$with_mingw" ;;
esac
fi fi
fi fi
for wine_arch in $cross_archs for wine_arch in $cross_archs
do do
case "x$with_mingw" in
xclang|x*/clang) eval "${wine_arch}_CC=\$with_mingw" ;;
esac
if eval \${${wine_arch}_CC:+false} : if eval \${${wine_arch}_CC:+false} :
then : then :
case $wine_arch in case $wine_arch in
......
...@@ -818,14 +818,13 @@ AS_VAR_SET_IF([enable_archs], ...@@ -818,14 +818,13 @@ AS_VAR_SET_IF([enable_archs],
[if test "x$with_mingw" != xno [if test "x$with_mingw" != xno
then then
test $HOST_ARCH = unknown || cross_archs=$HOST_ARCH test $HOST_ARCH = unknown || cross_archs=$HOST_ARCH
case "x$with_mingw" in
x|xyes) ;;
*) AS_VAR_SET(${cross_archs}_CC,$with_mingw) ;;
esac
fi]) fi])
for wine_arch in $cross_archs for wine_arch in $cross_archs
do do
case "x$with_mingw" in
xclang|x*/clang) AS_VAR_SET(${wine_arch}_CC,$with_mingw) ;;
esac
AS_VAR_IF([${wine_arch}_CC],[], AS_VAR_IF([${wine_arch}_CC],[],
[case $wine_arch in [case $wine_arch in
aarch64) aarch64)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment