From c2a6859012d928b67a83619bd5087674a96b9254 Mon Sep 17 00:00:00 2001 From: Paul Monson Date: Wed, 7 Aug 2019 11:57:45 -0700 Subject: fix mingw build and crashing bugs for Python Windows ARM64 (#496) * fix mingw build and crashing bugs for Python Windows ARM64 * Fix issues found in PR review --- msvcc.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'msvcc.sh') diff --git a/msvcc.sh b/msvcc.sh index 9c52f52..97facd6 100755 --- a/msvcc.sh +++ b/msvcc.sh @@ -85,6 +85,11 @@ do safeseh= shift 1 ;; + -marm64) + ml='armasm64' + safeseh= + shift 1 + ;; -clang-cl) cl="clang-cl" shift 1 @@ -299,6 +304,10 @@ if [ -n "$assembly" ]; then defines="$defines -D_M_ARM" fi + if [ $ml = "armasm64" ]; then + defines="$defines -D_M_ARM64" + fi + if test -n "$verbose"; then echo "$cl -nologo -EP $includes $defines $src > $ppsrc" fi @@ -307,6 +316,8 @@ if [ -n "$assembly" ]; then output="$(echo $output | sed 's%/F[dpa][^ ]*%%g')" if [ $ml = "armasm" ]; then args="-nologo -g -oldit $armasm_output $ppsrc -errorReport:prompt" + elif [ $ml = "armasm64" ]; then + args="-nologo -g $armasm_output $ppsrc -errorReport:prompt" else args="-nologo $safeseh $single $output $ppsrc" fi -- cgit v1.2.1