Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
BPO-41101: Support "arm64" in Mac/Tools/pythonw
  • Loading branch information
ronaldoussoren committed Jun 24, 2020
commit 2add6fb11b0eddf459c2e79ec86376a8adb00cfc
6 changes: 6 additions & 0 deletions Mac/Tools/pythonw.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,16 @@ setup_spawnattr(posix_spawnattr_t* spawnattr)

#elif defined(__ppc__)
cpu_types[0] = CPU_TYPE_POWERPC;

#elif defined(__i386__)
cpu_types[0] = CPU_TYPE_X86;

#elif defined(__arm64__)
cpu_types[0] = CPU_TYPE_ARM64;

#else
# error "Unknown CPU"

#endif

if (posix_spawnattr_setbinpref_np(spawnattr, count,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Support the new "arm64" architecture for macOS in the pythonw executable in
framework builds.