Skip to content
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

Do not use deprecated -Zsymbol-mangling-version in bootstrap #92516

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Jan 3, 2022

-Zsymbol-mangling-version now produces warnings unconditionally. So if you want to use legacy mangling for the compiler (new-symbol-mangling = false in config.toml), the build is now littered with warnings.

However, with this change, stage 1 std doesn't compile:

error: `-C symbol-mangling-version=legacy` requires `-Z unstable-options`

Even after the bootstrap compiler is updated and it will support -Csymbol-mangling-version, the bootstrap code would either need to use -Z for the legacy mangling or use -C in combination with -Z unstable-options (because -C + legacy is not allowed without the unstable options). Should we just add -Z unstable-options to std compilation to resolve this?

Btw I use legacy mangling because the new mangling is not supported by Hotspot.

@rust-highfive
Copy link
Collaborator

r? @Mark-Simulacrum

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 3, 2022
@Kobzol Kobzol marked this pull request as draft January 3, 2022 11:38
@rust-log-analyzer

This comment has been minimized.

@Mark-Simulacrum
Copy link
Member

Passing -Zunstable-options should be fine for stage 1+ in the case we need to set legacy.

Please also add a // cfg(bootstrap) comment on its own line by the if here, since this'll need to get collapsed at next bootstrap bump.

@Mark-Simulacrum Mark-Simulacrum 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-review Status: Awaiting review from the assignee but also interested parties. labels Jan 3, 2022
@Mark-Simulacrum Mark-Simulacrum marked this pull request as ready for review January 4, 2022 17:05
@Kobzol
Copy link
Contributor Author

Kobzol commented Jan 4, 2022

Oh, I see that you already took care of it 😅 Thanks!

@Mark-Simulacrum
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jan 4, 2022

📌 Commit e266cb9 has been approved by Mark-Simulacrum

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 4, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 4, 2022
…askrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang#91587 (core::ops::unsize: improve docs for DispatchFromDyn)
 - rust-lang#91907 (Allow `_` as the length of array types and repeat expressions)
 - rust-lang#92515 (RustWrapper: adapt for an LLVM API change)
 - rust-lang#92516 (Do not use deprecated -Zsymbol-mangling-version in bootstrap)
 - rust-lang#92530 (Move `contains` method of Option and Result lower in docs)
 - rust-lang#92546 (Update books)
 - rust-lang#92551 (rename StackPopClean::None to Root)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit e1a7743 into rust-lang:master Jan 5, 2022
@rustbot rustbot added this to the 1.59.0 milestone Jan 5, 2022
@Kobzol Kobzol deleted the bootstrap-symbol-mangling branch January 5, 2022 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants