Skip to content

Commit 438a35b

Browse files
committed
Implement macos build.
1 parent be2705b commit 438a35b

File tree

6 files changed

+288
-348
lines changed

6 files changed

+288
-348
lines changed

Include/Python.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#include "pyconfig.h"
1313
#include "pymacconfig.h"
1414

15+
#undef HAVE_DYNAMIC_LOADING
16+
1517
#if defined(__sgi) && !defined(_SGI_MP_SOURCE)
1618
# define _SGI_MP_SOURCE
1719
#endif

Lib/rebuildpython.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,13 @@ def run_rebuild():
516516
"-flto=thin",
517517
"-framework", "SystemConfiguration",
518518
"-framework", "CoreFoundation",
519+
"-framework", "Cocoa",
519520
"-framework", "Carbon",
521+
"-framework", "IOKit",
522+
"-framework", "QuartzCore",
523+
"-framework", "CoreServices",
524+
"-framework", "ApplicationServices",
525+
"-framework", "UniformTypeIdentifiers"
520526
]
521527
num_link_threads = os.environ.get("LINK_THREADS", None)
522528
if num_link_threads is not None:

0 commit comments

Comments
 (0)