Skip to content

Commit

Permalink
Implement macos build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxwell175 committed Nov 11, 2024
1 parent be2705b commit 438a35b
Show file tree
Hide file tree
Showing 6 changed files with 288 additions and 348 deletions.
2 changes: 2 additions & 0 deletions Include/Python.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include "pyconfig.h"
#include "pymacconfig.h"

#undef HAVE_DYNAMIC_LOADING

#if defined(__sgi) && !defined(_SGI_MP_SOURCE)
# define _SGI_MP_SOURCE
#endif
Expand Down
6 changes: 6 additions & 0 deletions Lib/rebuildpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,13 @@ def run_rebuild():
"-flto=thin",
"-framework", "SystemConfiguration",
"-framework", "CoreFoundation",
"-framework", "Cocoa",
"-framework", "Carbon",
"-framework", "IOKit",
"-framework", "QuartzCore",
"-framework", "CoreServices",
"-framework", "ApplicationServices",
"-framework", "UniformTypeIdentifiers"
]
num_link_threads = os.environ.get("LINK_THREADS", None)
if num_link_threads is not None:
Expand Down
Loading

0 comments on commit 438a35b

Please sign in to comment.