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

Set crt_static_respected and crt_static_default to true for the Emscripten target #99243

Closed

Conversation

hoodmane
Copy link
Contributor

As a followup to #98358, we should switch the default output kind to be static and allow the user to toggle it.

If I understand correctly, we are using crt-static to mean something different than it was originally intended to mean. It sounds like it normally controls whether libc is linked statically or dynamically. In Emscripten, it is impossible to dynamically link libc. However, standard Emscripten builds have dynamic linking disabled entirely. We are using +crt-static to mean "disable dynamic linking" and -crt-static to mean "enable dynamic linking".

@sbc100

r? @petrochenkov

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jul 14, 2022
@rust-highfive
Copy link
Collaborator

⚠️ Warning ⚠️

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

I'll mark this as blocked on #98358 because if LinkOutputKind is not used then these flags don't make much sense.

@petrochenkov petrochenkov added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 19, 2022
@hoodmane
Copy link
Contributor Author

Though tests fail on #98358 because this change isn't included so maybe I should just join this into that PR. With this change, that PR doesn't modify the default behavior since the default will end up being one of the do-nothing branches of setOutputKind

@hoodmane hoodmane closed this Jul 22, 2022
@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-blocked Status: Blocked on something else such as an RFC or other implementation work. 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