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-132132: Upgrade LLVM on tail calling CI#132098

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

Merged

Conversation

Fidget-Spinner
Copy link
Member

@Fidget-SpinnerFidget-Spinner commentedApr 4, 2025
edited
Loading

No description provided.

@Fidget-Spinner
Copy link
MemberAuthor

@chris-eibl can I take some of your time to request a review please :)?

@Fidget-SpinnerFidget-Spinner changed the titlegh-131591: Fix double redeclaration on MSVC+clang-clgh-131591: Upgrade LLVM on tail calling, and fix MSVCApr 4, 2025
@chris-eibl
Copy link
Member

Oh no, it's back again - this was already a back and forth (#130040).

I think, your fix back then (exclude__clang__)

#if defined(MS_WINDOWS) && !defined(__clang__)#define _GENERATE_DEBUG_SECTION_WINDOWS(name)                       \   _Pragma(Py_STRINGIFY(section(Py_STRINGIFY(name), read, write))) \   __declspec(allocate(Py_STRINGIFY(name)))

should stay: clangcl might not understand__declspec(allocate(...)).

But then, noGENERATE_DEBUG_SECTION is in effect, because

#if defined(__linux__) && (defined(__GNUC__) || defined(__clang__))#define _GENERATE_DEBUG_SECTION_LINUX(name) \   __attribute__((section("." Py_STRINGIFY(name))))               \   __attribute__((used))

will never fire due to__linux__. Maybe rewrite that to

#if (defined(__linux__) && defined(__GNUC__)) || (defined(MS_WINDOWS) && defined(__clang__))#define _GENERATE_DEBUG_SECTION_LINUX(name) \   __attribute__((section("." Py_STRINGIFY(name))))               \   __attribute__((used))

clang defines__GNUC__, so I dropped the first__clang__

@chris-eibl
Copy link
Member

Ah - while I was typing you already had the same idea :)

const char* secname = "_PyRuntime";
#else
const char* secname = "PyRuntime";
#endif
Copy link
Member

Choose a reason for hiding this comment

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

Use secname instead of "PyRuntime" below?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Yeah oops 🤦 thanks 3AM things.

chris-eibl reacted with laugh emoji
Comment on lines +117 to +118
export PATH="/usr/local/opt/llvm/bin:$PATH"
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"

Choose a reason for hiding this comment

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

wonder whether
eval "$(brew shellenv)"
is just enough for both intel and arm mac

Fidget-Spinner reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

That's a good point. Let me try that later.

@Fidget-Spinner
Copy link
MemberAuthor

Well I have absolutely no clue what's going on with Windows here. Will sleep on it and let someone else take over. In the meantime, will just use this PR to upgrade the LLVM version.

@chris-eibl
Copy link
Member

@Fidget-Spinner: I've created#132112 to fixGENERATE_DEBUG_SECTION for clangcl on Windows. CI is green. Feel free to incorporate it in this PR if you want - I'll then just close it.

@Fidget-SpinnerFidget-Spinner changed the titlegh-131591: Upgrade LLVM on tail calling, and fix MSVCUpgrade LLVM on tail calling CIApr 5, 2025
@Fidget-SpinnerFidget-Spinner changed the titleUpgrade LLVM on tail calling CIgh-132132: Upgrade LLVM on tail calling CIApr 5, 2025
@Fidget-Spinner
Copy link
MemberAuthor

@chris-eibl can you please send me an email (it's listed on my GH profile), I want to ask some questions.

@chris-eibl
Copy link
Member

Email sent :)

@Fidget-SpinnerFidget-Spinner merged commit92fb949 intopython:mainApr 5, 2025
44 checks passed
@Fidget-SpinnerFidget-Spinner deleted the fix-double-redeclaration branchApril 5, 2025 16:58
seehwan pushed a commit to seehwan/cpython that referenced this pull requestApr 16, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@taegyunkimtaegyunkimtaegyunkim left review comments

@chris-eiblchris-eiblchris-eibl left review comments

@ezio-melottiezio-melottiAwaiting requested review from ezio-melottiezio-melotti is a code owner

@hugovkhugovkAwaiting requested review from hugovkhugovk is a code owner

@AA-TurnerAA-TurnerAwaiting requested review from AA-TurnerAA-Turner is a code owner

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrently

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@Fidget-Spinner@chris-eibl@taegyunkim

[8]ページ先頭

©2009-2025 Movatter.jp