Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-134273: Propagate CFLAGS to the JIT #134276

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
Loading
from

Conversation

zanieb
Copy link
Contributor

@zanieb zanieb commented May 19, 2025

Copy link
Member

@brandtbucher brandtbucher left a comment

Choose a reason for hiding this comment

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

Thanks! These should also be part of the hash in _Target._compute_digest.

@bedevere-app
Copy link

bedevere-app bot commented May 19, 2025

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@brandtbucher
Copy link
Member

BTW, JIT CI is broken on macOS and Windows currently, so if those fail (build failure on Windows and 2 failing tests on macOS), it's not your fault.

@zanieb
Copy link
Contributor Author

zanieb commented May 19, 2025

Technically, this should probably also support CFLAGS_NODIST? I'm not sure.

@zanieb zanieb marked this pull request as ready for review May 20, 2025 14:00
@brandtbucher
Copy link
Member

It's up to you. If you want to add CFLAGS_NODIST, just use the same --with-cflags option to pass them though (the build script doesn't care which is which).

@brandtbucher
Copy link
Member

brandtbucher commented May 20, 2025

So, this breaks on universal builds, since that sets CONFIGURE_CFLAGS= -arch arm64 -arch x86_64. See the AArch64 macOS failures in CI (it's different from the expected test failures).

I think part of the problem is that we don't want to use an option for the JIT just because it's being used for the interpreter itself. We want very tight control over the code we're generating, especially since the parse step is sort of fragile.

What flags are you needing to pass, exactly? Is it only include paths?

@zanieb
Copy link
Contributor Author

zanieb commented May 20, 2025

I only need the include flag for my build to pass. But I only caught #134291 because all of my flags were passed through. It's possible there are other subtle differences. I'm totally fine with a CFLAGS_JIT, personally. I feel like people are opposed to new CFLAGS variants, but here it makes a lot of sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.