Don't rely on EXEEXT as an env variable, infer it from --host instead

This commit is contained in:
Martin Storsjö committed 2019-11-13 12:59:53 +02:00
1 parent 577400a5f7
commit f1168d3016
4 files changed
+24 -6

No files matched your search

+4
View File
@@ -36,6 +36,10 @@ MINGW*)
;;
esac
if [ -n "$HOST" ]; then
EXEEXT=.exe
fi
if [ -n "$EXEEXT" ]; then
CLANG_MAJOR=$(basename $(echo $PREFIX/lib/clang/* | awk '{print $NF}') | cut -f 1 -d .)
WRAPPER_FLAGS="$WRAPPER_FLAGS -municode -DCLANG=\"clang-$CLANG_MAJOR\""