Skip to content
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

gh-93744: Remove configure --with-cxx-main option #95651

Merged
merged 1 commit into from
Aug 5, 2022
Merged

gh-93744: Remove configure --with-cxx-main option #95651

merged 1 commit into from
Aug 5, 2022

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Aug 4, 2022

Remove the "configure --with-cxx-main" build option: it didn't work
for many years. Remove the MAINCC variable from configure and
Makefile.

The MAINCC variable was added by the issue gh-42471: commit
0f48d98. Previously, --with-cxx-main
was named --with-cxx.

Keep CXX and LDCXXSHARED variables, even if they are no longer used
by Python build system.

Remove the "configure --with-cxx-main" build option: it didn't work
for many years. Remove the MAINCC variable from configure and
Makefile.

The MAINCC variable was added by the issue gh-42471: commit
0f48d98. Previously, --with-cxx-main
was named --with-cxx.

Keep CXX and LDCXXSHARED variables, even if they are no longer used
by Python build system.
@vstinner
Copy link
Member Author

vstinner commented Aug 4, 2022

Keep CXX and LDCXXSHARED variables, even if they are no longer used by Python build system.

See #94063 comments for the rationale. Well, someone can write a following PR to remove them. But I'm not brave and for this PR, I prefer to keep them to restrict the PR to --with-cxx-main removal ;-)

Copy link
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the new patch. It makes sense to keep the C++ C and LD flags.

@vstinner
Copy link
Member Author

vstinner commented Aug 5, 2022

I like the new patch. It makes sense to keep the C++ C and LD flags.

This patch should only impacts Python build system, whereas removing CXX and LDCXXSHARED can impact 3rd party projects getting these variables via sysconfig.

Moreover, I'm still thinking about building Lib/test/_testcppext.cpp with configure/Makefile to be able to run it in test_cppext ;-)

@vstinner vstinner merged commit 398ed84 into python:main Aug 5, 2022
@vstinner vstinner deleted the remove_maincc branch August 5, 2022 11:27
@vstinner
Copy link
Member Author

vstinner commented Aug 5, 2022

Thanks for reviews.

iritkatriel pushed a commit to iritkatriel/cpython that referenced this pull request Aug 11, 2022
Remove the "configure --with-cxx-main" build option: it didn't work
for many years. Remove the MAINCC variable from configure and
Makefile.

The MAINCC variable was added by the issue pythongh-42471: commit
0f48d98. Previously, --with-cxx-main
was named --with-cxx.

Keep CXX and LDCXXSHARED variables, even if they are no longer used
by Python build system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants