Skip to content

Removes debug settings from wasm32_unknown_emscripten default link args #97928

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

Merged
merged 3 commits into from
Jun 11, 2022

Conversation

hoodmane
Copy link
Contributor

@hoodmane hoodmane commented Jun 9, 2022

This is a debug setting. We should only make debug builds if user requests
a debug build. Currently this is inserted in release builds.

Furthermore, it would be better to insert these settings in --pre-link-args
because then it would be possible to override them if appropriate. Because
these are inserted at the end, it is necessary to patch emscripten to remove
them.

@sbc100

This is a debug setting. We should only make debug builds if user requests
a debug build. Currently this is inserted in release builds.

Furthermore, it would be better to insert these settings in --pre-link-args
because then it would be possible to override them if appropriate. Because
these are inserted at the end, it is necessary to patch emscripten to remove
them.
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jun 9, 2022
@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfive
Copy link
Contributor

⚠️ Warning ⚠️

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 9, 2022
Copy link

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

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

@tlively who worked on this toolchain

@rust-log-analyzer

This comment has been minimized.

Copy link
Contributor

@tlively tlively left a comment

Choose a reason for hiding this comment

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

This seems reasonable to me.

@Dylan-DPC
Copy link
Member

@bors r=tlively rollup

@bors
Copy link
Collaborator

bors commented Jun 10, 2022

📌 Commit b32238a has been approved by tlively

@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 Jun 10, 2022
@klensy
Copy link
Contributor

klensy commented Jun 10, 2022

Title says: Remove -sASSERTIONS=1 but actually removes -sERROR_ON_UNDEFINED_SYMBOLS=1 too, should title be changed?

@Dylan-DPC Dylan-DPC changed the title Remove -sASSERTIONS=1 from wasm32_unknown_emscripten default link args Removes debug settings from wasm32_unknown_emscripten default link args Jun 10, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Jun 10, 2022
…r=tlively

Removes debug settings from wasm32_unknown_emscripten default link args

This is a debug setting. We should only make debug builds if user requests
a debug build. Currently this is inserted in release builds.

Furthermore, it would be better to insert these settings in --pre-link-args
because then it would be possible to override them if appropriate. Because
these are inserted at the end, it is necessary to patch emscripten to remove
them.

`@sbc100`
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 10, 2022
…askrgr

Rollup of 6 pull requests

Successful merges:

 - rust-lang#93331 (refactor write_output_file to merge two invocation paths into one.)
 - rust-lang#97928 (Removes debug settings from wasm32_unknown_emscripten default link args)
 - rust-lang#97940 (Use relative links instead of linking to doc.rust-lang.org when possible)
 - rust-lang#97941 (nit: Fixed several error_codes/Exxxx.md messages which used UpperCamelCase…)
 - rust-lang#97953 (Add regression test for rust-lang#54378)
 - rust-lang#97957 (Make `std::` prefix suggestion test `run-rustfix`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 35ba4dc into rust-lang:master Jun 11, 2022
@rustbot rustbot added this to the 1.63.0 milestone Jun 11, 2022
@hoodmane hoodmane deleted the emscripten-no-assertions branch June 11, 2022 01:46
@workingjubilee workingjubilee added the O-emscripten Target: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL! label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-emscripten Target: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL! S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.