-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[win] Use a dash instead of slash for linker to avoid breaking lld #140977
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
Conversation
These commits modify compiler targets. |
r? @jieyouxu (Sorry, referenced the wrong PR as causing the regression) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
r? jieyouxu @bors r+ rollup |
This comment has been minimized.
This comment has been minimized.
[win] Use a dash instead of slash for linker to avoid breaking lld rust-lang#140758 added the `/arm64hazardfree` linker arg for aarch64-pc-windows-msvc, unfortunately this breaks linking with `lld` as it 1) doesn't understand the arguments and 2) assumes that unknown args that start with `/` are input files. Fix is to use a dash for the arg: `-arm64hazardfree` r? `@wesleywiser`
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
@bors retry (not enough space) |
[win] Use a dash instead of slash for linker to avoid breaking lld rust-lang#140758 added the `/arm64hazardfree` linker arg for aarch64-pc-windows-msvc, unfortunately this breaks linking with `lld` as it 1) doesn't understand the arguments and 2) assumes that unknown args that start with `/` are input files. Fix is to use a dash for the arg: `-arm64hazardfree` r? `@wesleywiser`
Rollup of 4 pull requests Successful merges: - rust-lang#140953 (Fix a compiletest blessing message) - rust-lang#140973 (Update rustix to 1.0.7 for bootstrap) - rust-lang#140976 (Add `Ipv4Addr` and `Ipv6Addr` diagnostic items) - rust-lang#140977 ([win] Use a dash instead of slash for linker to avoid breaking lld) r? `@ghost` `@rustbot` modify labels: rollup
For a value of "fix" that means lld emitting a warning about an unknown argument. |
[win] Use a dash instead of slash for linker to avoid breaking lld rust-lang#140758 added the `/arm64hazardfree` linker arg for aarch64-pc-windows-msvc, unfortunately this breaks linking with `lld` as it 1) doesn't understand the arguments and 2) assumes that unknown args that start with `/` are input files. Fix is to use a dash for the arg: `-arm64hazardfree` r? `@wesleywiser`
Unfortunately, #133409 forced the lld and non-lld args to be the same, and there doesn't seem to be a standard way to indicate that an argument is intentionally different between the two. @RalfJung @petrochenkov what's the correct way to add an MSVC linker ONLY arg that SHOULDN'T be passed to lld? |
Nevermind, the more that I think about this, the more that I believe that using the undocumented flag is the incorrect solution. I'm going to disable the test instead, and I've filed a bug against the MSVC team to remove this check from the linker: https://developercommunity.microsoft.com/t/Remove-checking-for-and-fixing-Cortex-A/10905134 |
Abandoning in favor of #141045 |
…mpiler-errors Rollup of 14 pull requests Successful merges: - rust-lang#139749 (docs(library/core/src/pin): fix typo "necessarily" -> "necessary") - rust-lang#140130 (Add LLDB providers for BTreeMap and BTreeSet) - rust-lang#140685 (Simplify `Vec::as_non_null` implementation and make it `const`) - rust-lang#140712 (normalization: avoid incompletely constraining GAT args) - rust-lang#140768 (Improve `dangerous_implicit_aurorefs` diagnostic output) - rust-lang#140834 (move (or remove) some impl Trait tests) - rust-lang#140910 (Remove `stable` attribute from wasi fs (read_exact|write_all)_at) - rust-lang#140947 (Flush errors before deep normalize in `dropck_outlives`) - rust-lang#140966 (Remove #![feature(let_chains)] from library and src/librustdoc) - rust-lang#140977 ([win] Use a dash instead of slash for linker to avoid breaking lld) - rust-lang#140990 (VxWorks: updates from recent libc versions) - rust-lang#141003 (Improve ternary operator recovery) - rust-lang#141013 (Implement methods to set STARTUPINFO flags for Command API on Windows) - rust-lang#141026 (rustc-dev-guide subtree update) r? `@ghost` `@rustbot` modify labels: rollup
#140758 added the
/arm64hazardfree
linker arg for aarch64-pc-windows-msvc, unfortunately this breaks linking withlld
as it 1) doesn't understand the arguments and 2) assumes that unknown args that start with/
are input files.Fix is to use a dash for the arg:
-arm64hazardfree
r? @wesleywiser