mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
configure: Also extract the cross target from Clang compilers.
Signed-off-by: Chip Davis <cdavis@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
25d79204e3
commit
73bc52c273
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user