Commit 266c9710 authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Skip the rest of the PE checks if the cross-compiler isn't detected.

parent c44eb6d6
......@@ -10886,10 +10886,17 @@ then :
CFLAGS="$CFLAGS -target $target $llvm_cflags"
fi }
eval "${wine_arch}_TARGET=\$target"
PE_ARCHS="$PE_ARCHS $wine_arch"
fi
if test -z "$target"
then
CC=$saved_CC
CFLAGS=$saved_CFLAGS
continue
fi
as_fn_append PE_ARCHS " $wine_arch"
as_wine_cv_crosscc_c99=`printf "%s\n" "ac_cv_${wine_arch}_crosscc_c99" | $as_tr_sh`
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
......
......@@ -951,10 +951,17 @@ do
AS_VAR_SET([${wine_arch}_DELAYLOADFLAG],["-Wl,-delayload,"])
AS_VAR_APPEND([${wine_arch}_EXTRACFLAGS],[" -target $target"])
CFLAGS="$CFLAGS -target $target $llvm_cflags"])
AS_VAR_SET([${wine_arch}_TARGET],[$target])
PE_ARCHS="$PE_ARCHS $wine_arch"])
AS_VAR_SET([${wine_arch}_TARGET],[$target])])
AS_VAR_POPDEF([wine_cv_crosscc])
if test -z "$target"
then
CC=$saved_CC
CFLAGS=$saved_CFLAGS
continue
fi
AS_VAR_APPEND([PE_ARCHS],[" $wine_arch"])
AS_VAR_PUSHDEF([wine_cv_crosscc_c99],[ac_cv_${wine_arch}_crosscc_c99])
AC_MSG_CHECKING([for $CC option to enable C99 features])
AC_CACHE_VAL([wine_cv_crosscc_c99],
......
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