[PATCH vkd3d] configure: Also extract the cross target from Clang compilers.

Chip Davis cdavis at codeweavers.com
Wed Aug 4 14:19:08 CDT 2021


Signed-off-by: Chip Davis <cdavis at codeweavers.com>
---
 m4/check-mingw-prog.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/m4/check-mingw-prog.m4 b/m4/check-mingw-prog.m4
index ac3e07d..94fe795 100644
--- a/m4/check-mingw-prog.m4
+++ b/m4/check-mingw-prog.m4
@@ -15,7 +15,7 @@ AS_VAR_IF([vkd3d_cross_cc], [$3],
   AC_MSG_CHECKING([whether $CC works])
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
                     [AC_MSG_RESULT([yes])
-                    $2=`expr "$CC" : '\(.*\)-gcc'`],
+                    $2=`expr "$CC" : '\(.*\)-gcc' \| "$CC" : '\(.*\)-clang'`],
                     [AC_MSG_RESULT([no])])
   CC="$vkd3d_cc_saved"])
 AS_VAR_POPDEF([vkd3d_cross_cc])dnl
@@ -34,7 +34,7 @@ AS_VAR_IF([vkd3d_cross_cc], [$3],
   AC_MSG_CHECKING([whether $CC works])
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
                     [AC_MSG_RESULT([yes])
-                    $2=`expr "$CC" : '\(.*\)-gcc'`],
+                    $2=`expr "$CC" : '\(.*\)-gcc' \| "$CC" : '\(.*\)-clang'`],
                     [AC_MSG_RESULT([no])])
   CC="$vkd3d_cc_saved"])
 AS_VAR_POPDEF([vkd3d_cross_cc])dnl
-- 
2.31.1




More information about the wine-devel mailing list