Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
zanieb wants to merge4 commits intopython:main
base:main
Choose a base branch
Loading
fromzanieb:zb/cflags-jit

Conversation

zanieb
Copy link
Contributor

@zaniebzanieb commentedMay 19, 2025
edited
Loading

Copy link
Member

@brandtbucherbrandtbucher 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.

zanieb reacted with thumbs up emoji
@bedevere-app
Copy link

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 phraseI 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 reacted with laugh emoji

@zanieb
Copy link
ContributorAuthor

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

@brandtbucher
Copy link
Member

It's up to you. If you want to addCFLAGS_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 commentedMay 20, 2025
edited
Loading

So, this breaks on universal builds, since that setsCONFIGURE_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 JITjust 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
ContributorAuthor

zanieb commentedMay 20, 2025
edited
Loading

I onlyneed 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 aCFLAGS_JIT, personally. I feel like people are opposed to new CFLAGS variants, but here it makes a lot of sense.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@brandtbucherbrandtbucherbrandtbucher requested changes

@savannahostrowskisavannahostrowskiAwaiting requested review from savannahostrowskisavannahostrowski is a code owner

@erlend-aaslanderlend-aaslandAwaiting requested review from erlend-aaslanderlend-aasland is a code owner

@corona10corona10Awaiting requested review from corona10corona10 is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@zanieb@brandtbucher

[8]ページ先頭

©2009-2025 Movatter.jp