Skip to content

Add a regression test for ld64 #143126

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

dianqk
Copy link
Member

@dianqk dianqk commented Jun 28, 2025

We might want a test case.

r? ghost

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jun 28, 2025
@dianqk
Copy link
Member Author

dianqk commented Jun 28, 2025

I'm currently unable to access my Mac.

@bors2 try jobs=x86_apple*,aarch64-apple

@rust-bors
Copy link

rust-bors bot commented Jun 28, 2025

⌛ Trying commit 0a22d2d with merge 5c1100c

To cancel the try build, run the command @bors2 try cancel.

rust-bors bot added a commit that referenced this pull request Jun 28, 2025
Add a regression test for ld64

We might want a test case.

r? ghost
try-job: x86_apple*
try-job: aarch64-apple
Comment on lines +5 to +8
// This is a regression test for https://github.com/rust-lang/rust/issues/140686.
// Although this is a ld64(ld-classic) bug, we still need to support it
// due to cross-compilation and support for older Xcode.
Copy link
Member

@jieyouxu jieyouxu Jun 28, 2025

Choose a reason for hiding this comment

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

Question: do we know if ld-classic will ever be removed in newer Xcode versions?

(EDIT: actually probably nevermind, we'll then either drop this test and/or need to bump our min baseline versions anyway.)

Copy link
Member Author

Choose a reason for hiding this comment

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

Nobody knows. Even after removing it, we might still need a long time to get rid of the test. :(

Copy link
Member Author

Choose a reason for hiding this comment

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

Perhaps we could wait for new updates from Apple first, such as a fix for the ld64 bug, or the release of new linker source code.

Copy link
Member

Choose a reason for hiding this comment

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

Oh for the test I'm not too worried even if somehow say a macos image bumps the xcode version and then this test blocks full CI, in that situation this test can be disabled or removed easily.

I was just musing if ld-classic might be gone.

@rust-bors
Copy link

rust-bors bot commented Jun 28, 2025

💔 Test failed

@dianqk
Copy link
Member Author

dianqk commented Jun 28, 2025

@bors2 try jobs=x86_64-apple*,aarch64-apple

@rust-bors
Copy link

rust-bors bot commented Jun 28, 2025

⌛ Trying commit 0a22d2d with merge 2287774

To cancel the try build, run the command @bors2 try cancel.

rust-bors bot added a commit that referenced this pull request Jun 28, 2025
Add a regression test for ld64

We might want a test case.

r? ghost
try-job: x86_64-apple*
try-job: aarch64-apple
@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Jun 28, 2025

💔 Test failed

@dianqk
Copy link
Member Author

dianqk commented Jun 28, 2025

@bors2 try jobs=x86_64-apple*,aarch64-apple

@rust-bors
Copy link

rust-bors bot commented Jun 28, 2025

⌛ Trying commit 06d92f9 with merge 2fc68db

To cancel the try build, run the command @bors2 try cancel.

rust-bors bot added a commit that referenced this pull request Jun 28, 2025
Add a regression test for ld64

We might want a test case.

r? ghost
try-job: x86_64-apple*
try-job: aarch64-apple
@rust-bors
Copy link

rust-bors bot commented Jun 28, 2025

💔 Test failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants