wrappers: force linking with mincore for UWP targets
it's not needed for regular win32 so shouldn't be either for these targets
This commit is contained in:
1 parent
707fda6348
commit
a270bc3cad
3 files changed
+12
-1
No files matched your search
@@ -26,10 +26,17 @@ if [ "$TARGET" = "$BASENAME" ]; then
|
||||
TARGET=$DEFAULT_TARGET
|
||||
fi
|
||||
ARCH="${TARGET%%-*}"
|
||||
TARGET_OS="${TARGET##*-}"
|
||||
case $ARCH in
|
||||
i686) M=i386pe ;;
|
||||
x86_64) M=i386pep ;;
|
||||
armv7) M=thumb2pe ;;
|
||||
aarch64) M=arm64pe ;;
|
||||
esac
|
||||
ld.lld -m $M "$@"
|
||||
FLAGS="-m $M"
|
||||
case $TARGET_OS in
|
||||
mingw32uwp)
|
||||
FLAGS="$FLAGS -lmincore"
|
||||
;;
|
||||
esac
|
||||
ld.lld $FLAGS "$@"
|
||||
Reference in new issue
Block a user