Enable msvc for run-make/rust-lld by ChrisDenton · Pull Request #128656 · rust-lang/rust (original) (raw)

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

Already on GitHub?Sign in to your account

Conversation15 Commits1 Checks6 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

ChrisDenton

This is simply a matter of using the right argument for lld-link.

As a bonus, I also fixed a typo.

try-job: i686-msvc
try-job: x86_64-msvc

@rustbot

r? @jieyouxu

rustbot has assigned @jieyouxu.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot

This PR modifies tests/run-make/. If this PR is trying to port a Makefile
run-make test to use rmake.rs, please update the
run-make port tracking issue
so we can track our progress. You can either modify the tracking issue
directly, or you can comment on the tracking issue and link this PR.

cc @jieyouxu

@ChrisDenton

@lqd

I don’t remember we’ve implemented self-contained linking other than by using a c/c++ compiler driver link-arg, while msvc needs to change the linker, so it’ll be interesting to see the results.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Aug 4, 2024

@bors

Enable msvc for run-make/rust-lld

This is simply a matter of using the right argument for lld-link.

As a bonus, I also fixed a typo.

try-job: i686-msvc try-job: x86_64-msvc

@bors

@lqd

@bors

☀️ Try build successful - checks-actions
Build commit: b3c6a51 (b3c6a51bf4fc2dfe811fc51a542e6ba065f6043b)

@ChrisDenton

Success!

@bors r=lqd rollup

@bors

📌 Commit d6c9d64 has been approved by lqd

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Aug 4, 2024

@lqd

Ah I think I know why it works even though we didn’t purposefully implement self-contained linking on non-unixy platforms: we can change the linker according to the linker flavor, and we currently use an lld linker-flavor as an implementation detail of self-contained linking. I guess this test will prevent us from being lazy when we refactor this away 😅 .

ChrisDenton added a commit to ChrisDenton/rust that referenced this pull request

Aug 5, 2024

@ChrisDenton

Enable msvc for run-make/rust-lld

This is simply a matter of using the right argument for lld-link.

As a bonus, I also fixed a typo.

try-job: i686-msvc try-job: x86_64-msvc

bors added a commit to rust-lang-ci/rust that referenced this pull request

Aug 5, 2024

@bors

@ChrisDenton

ChrisDenton

fn main() {
// lld-link is used if msvc, otherwise a gnu-compatible lld is used.
let linker_version_flag = if is_msvc() { "--version" } else { "Wl,-v" };

Choose a reason for hiding this comment

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

Oh, I made a typo of my own. I forgot the dash -. Silly me.

@ChrisDenton

@bors bors added S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

and removed S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

labels

Aug 5, 2024

@ChrisDenton

This is simply a matter of using the right argument for lld-link.

@ChrisDenton

Let's try that again...

@bors r=lqd

@bors

📌 Commit 1737845 has been approved by lqd

It is now in the queue for this repository.

@bors bors removed the S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

label

Aug 5, 2024

@bors bors added the S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

label

Aug 5, 2024

tgross35 added a commit to tgross35/rust that referenced this pull request

Aug 5, 2024

@tgross35

Enable msvc for run-make/rust-lld

This is simply a matter of using the right argument for lld-link.

As a bonus, I also fixed a typo.

try-job: i686-msvc try-job: x86_64-msvc

bors added a commit to rust-lang-ci/rust that referenced this pull request

Aug 5, 2024

@bors

tgross35 added a commit to tgross35/rust that referenced this pull request

Aug 7, 2024

@tgross35

Enable msvc for run-make/rust-lld

This is simply a matter of using the right argument for lld-link.

As a bonus, I also fixed a typo.

try-job: i686-msvc try-job: x86_64-msvc

tgross35 added a commit to tgross35/rust that referenced this pull request

Aug 7, 2024

@tgross35

Enable msvc for run-make/rust-lld

This is simply a matter of using the right argument for lld-link.

As a bonus, I also fixed a typo.

try-job: i686-msvc try-job: x86_64-msvc

tgross35 added a commit to tgross35/rust that referenced this pull request

Aug 7, 2024

@tgross35

Enable msvc for run-make/rust-lld

This is simply a matter of using the right argument for lld-link.

As a bonus, I also fixed a typo.

try-job: i686-msvc try-job: x86_64-msvc

tgross35 added a commit to tgross35/rust that referenced this pull request

Aug 7, 2024

@tgross35

Enable msvc for run-make/rust-lld

This is simply a matter of using the right argument for lld-link.

As a bonus, I also fixed a typo.

try-job: i686-msvc try-job: x86_64-msvc

bors added a commit to rust-lang-ci/rust that referenced this pull request

Aug 7, 2024

@bors

Rollup of 7 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Aug 7, 2024

@bors

…llaumeGomez

Rollup of 9 pull requests

Successful merges:

Failed merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Aug 7, 2024

@rust-timer

Rollup merge of rust-lang#128656 - ChrisDenton:rust-lld, r=lqd

Enable msvc for run-make/rust-lld

This is simply a matter of using the right argument for lld-link.

As a bonus, I also fixed a typo.

try-job: i686-msvc try-job: x86_64-msvc

Labels

A-run-make

Area: port run-make Makefiles to rmake.rs

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.