summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index cf07cdd..488f7fe 100755
--- a/setup.py
+++ b/setup.py
@@ -102,8 +102,9 @@ else:
if sys.platform == 'win32' and '64 bit' in sys.version:
# this works when building with msvc, not with 64 bit gcc
- # switch_x64_masm.obj can be created with setup_switch_x64_masm.cmd
- extra_objects = [GREENLET_PLATFORM_DIR + 'switch_x64_masm.obj']
+ # switch_<platform>_masm.obj can be created with setup_switch_<platform>_masm.cmd
+ obj_fn = 'switch_arm64_masm.obj' if platform.machine() == 'ARM64' else 'switch_x64_masm.obj'
+ extra_objects = [os.path.join(GREENLET_PLATFORM_DIR, obj_fn)]
else:
extra_objects = []