Add wrappers that target Universal Windows

This commit is contained in:
Steve Lhomme authored and Martin Storsjö committed 2019-04-18 11:28:05 +03:00
1 parent 47acbb667e
commit ca44a11660
3 files changed
+37 -11

No files matched your search

+11
View File
@@ -8,6 +8,7 @@ if [ "$TARGET" = "$BASENAME" ]; then
TARGET=$DEFAULT_TARGET
fi
ARCH="${TARGET%%-*}"
TARGET_OS="${TARGET##*-}"
# Check if trying to compile Ada; if we try to do this, invoking clang
# would end up invoking <triplet>-gcc with the same arguments, which ends
@@ -52,6 +53,16 @@ aarch64)
# Dwarf is the default here.
;;
esac
case $TARGET_OS in
mingw32uwp)
# the UWP target is for Windows 10
FLAGS="$FLAGS -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00"
# the UWP target can only use Windows Store APIs
FLAGS="$FLAGS -DWINAPI_FAMILY=WINAPI_FAMILY_APP"
# the Windows Store API only supports Windows Unicode (some rare ANSI ones are available)
FLAGS="$FLAGS -DUNICODE"
;;
esac
FLAGS="$FLAGS -target $TARGET"
FLAGS="$FLAGS -rtlib=compiler-rt"