diff options
author | Paul Monson <paulmon@users.noreply.github.com> | 2019-08-07 11:57:45 -0700 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2019-08-07 14:57:45 -0400 |
commit | c2a6859012d928b67a83619bd5087674a96b9254 (patch) | |
tree | 391b6fe88d9d3f75301f59face9d6051e8c4f1dd /msvcc.sh | |
parent | e0b4f84fb71c6760068c9d1306e77c9382e76d8d (diff) | |
download | libffi-c2a6859012d928b67a83619bd5087674a96b9254.tar.gz |
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
Diffstat (limited to 'msvcc.sh')
-rwxr-xr-x | msvcc.sh | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |