Module: wine Branch: master Commit: a09019b7e99ab364b9e9ad4d7f3d18daee072ce9 URL: https://gitlab.winehq.org/wine/wine/-/commit/a09019b7e99ab364b9e9ad4d7f3d18d...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jul 6 13:27:07 2023 +0200
configure: Allow using clang as cross-compiler for multiple archs.
---
configure | 7 +++---- configure.ac | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/configure b/configure index 1e05d87431c..a6736d138c6 100755 --- a/configure +++ b/configure @@ -10354,15 +10354,14 @@ else $as_nop if test "x$with_mingw" != xno then test $HOST_ARCH = unknown || cross_archs=$HOST_ARCH - case "x$with_mingw" in - x|xyes) ;; - *) eval "${cross_archs}_CC=$with_mingw" ;; - esac fi fi
for wine_arch in $cross_archs do + case "x$with_mingw" in + xclang|x*/clang) eval "${wine_arch}_CC=$with_mingw" ;; + esac if eval ${${wine_arch}_CC:+false} : then : case $wine_arch in diff --git a/configure.ac b/configure.ac index 6e1b8250cc1..6b75edc254e 100644 --- a/configure.ac +++ b/configure.ac @@ -818,14 +818,13 @@ AS_VAR_SET_IF([enable_archs], [if test "x$with_mingw" != xno then 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])
for wine_arch in $cross_archs do + case "x$with_mingw" in + xclang|x*/clang) AS_VAR_SET(${wine_arch}_CC,$with_mingw) ;; + esac AS_VAR_IF([${wine_arch}_CC],[], [case $wine_arch in aarch64)