Commit 6a3c382d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

configure: Use -Wl,-WX for clang configure checks in MSVC mode.

LLD by default emits only a warning for unknown arguments. This makes it pass -Wl,--disable-stdcall-fixup check, which is in fact an invalid option (and disabled by default anyway), causing warnings spam during the build.
parent b07c95e7
...@@ -10692,7 +10692,7 @@ then : ...@@ -10692,7 +10692,7 @@ then :
fi fi
llvm_extra_cflags="-target $llvm_target -fuse-ld=lld" llvm_extra_cflags="-target $llvm_target -fuse-ld=lld"
case $llvm_target in case $llvm_target in
*windows) llvm_cflags="-Wl,-subsystem:console" ;; *windows) llvm_cflags="-Wl,-subsystem:console -Wl,-WX" ;;
esac esac
{ as_ac_var=`printf "%s\n" "ac_cv_${wine_arch}_cflags_$llvm_extra_cflags $llvm_cflags" | $as_tr_sh` { as_ac_var=`printf "%s\n" "ac_cv_${wine_arch}_cflags_$llvm_extra_cflags $llvm_cflags" | $as_tr_sh`
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $llvm_extra_cflags $llvm_cflags" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $llvm_extra_cflags $llvm_cflags" >&5
......
...@@ -895,7 +895,7 @@ do ...@@ -895,7 +895,7 @@ do
fi fi
llvm_extra_cflags="-target $llvm_target -fuse-ld=lld" llvm_extra_cflags="-target $llvm_target -fuse-ld=lld"
case $llvm_target in case $llvm_target in
*windows) llvm_cflags="-Wl,-subsystem:console" ;; *windows) llvm_cflags="-Wl,-subsystem:console -Wl,-WX" ;;
esac esac
WINE_TRY_PE_CFLAGS([$llvm_extra_cflags $llvm_cflags], WINE_TRY_PE_CFLAGS([$llvm_extra_cflags $llvm_cflags],
[target=$llvm_target [target=$llvm_target
......
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