-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-45950: Fix macOS framework builds of _bootstrap_python (GH-29936) #29936
Conversation
🤖 New build scheduled with the buildbot fleet by @tiran for commit 02dc19dd98f2eaa19c2de25eb5a48dec857fa7b1 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
02dc19d
to
cb45323
Compare
cb45323
to
0a3a53c
Compare
# like getpath.o with additional -DPY_BOOTSTRAP_PYTHON=1 | ||
Modules/getpath_bootstrap.o: $(srcdir)/Modules/getpath.c Python/frozen_modules/getpath.h Makefile $(PYTHON_HEADERS) | ||
$(CC) -c $(PY_CORE_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \ | ||
-DPREFIX='"$(prefix)"' \ | ||
-DEXEC_PREFIX='"$(exec_prefix)"' \ | ||
-DVERSION='"$(VERSION)"' \ | ||
-DVPATH='"$(VPATH)"' \ | ||
-DPLATLIBDIR='"$(PLATLIBDIR)"' \ | ||
-DPY_BOOTSTRAP_PYTHON=1 \ | ||
-o $@ $(srcdir)/Modules/getpath.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be more elegant to have a two-line file named getpath_bootstrap.c
using the default .c.o rule?
#define BOOTSTRAP_PYTHON 1
#include "getpath.c"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that the approach is not elegant. getpath.c
requires additional macros
Lines 24 to 28 in ddbab69
#if (!defined(PREFIX) || !defined(EXEC_PREFIX) \ | |
|| !defined(VERSION) || !defined(VPATH) \ | |
|| !defined(PLATLIBDIR)) | |
#error "PREFIX, EXEC_PREFIX, VERSION, VPATH and PLATLIBDIR macros must be defined" | |
#endif |
…g framework
https://bugs.python.org/issue45950