Skip to content

Commit ca4a3e3

Browse files
committed
Fix macOS framework builds
Signed-off-by: Filipe Laíns <[email protected]
1 parent 00b1c2d commit ca4a3e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/getpath.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,9 @@ progname_to_dict(PyObject *dict, const char *key)
806806
static int
807807
library_to_dict(PyObject *dict, const char *key)
808808
{
809-
#ifdef Py_ENABLE_SHARED
809+
/* macOS framework builds do not link against a libpython dynamic library, but
810+
instead link against a macOS Framework. */
811+
#ifdef Py_ENABLE_SHARED || WITH_NEXT_FRAMEWORK
810812

811813
#ifdef MS_WINDOWS
812814
extern HMODULE PyWin_DLLhModule;

0 commit comments

Comments
 (0)