-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Update linux_musl base to dynamically link the crt by default #133386
base: master
Are you sure you want to change the base?
Update linux_musl base to dynamically link the crt by default #133386
Conversation
However, don't change the behavior of any existing targets at this time. For targets that used the old default, explicitly set `crt_static_default = true`. This makes it easier for new targets to use the correct defaults while leaving the changing of individual targets to future PRs. Related to rust-lang/compiler-team#422
These commits modify compiler targets. |
// These targets statically link libc by default | ||
base.crt_static_default = true; | ||
|
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.
Question: do we have any way to test (or rather, track) the "finalized" crt static default for each target (as in, after the base and overrides are merged together to produce the final value for a given target)? So that if anyone does modify the default and cause the "finalized" value to change, we do so intentionally with something like a test rebless or test modification?
I looked at --print=all-target-specs-json
locally, but AFAICT that omits this field if it's not overriden or something...
r? @jieyouxu |
However, don't change the behavior of any existing targets at this time. For targets that used the old default, explicitly set
crt_static_default = true
.This makes it easier for new targets to use the correct defaults while leaving the changing of individual targets to future PRs.
Related to rust-lang/compiler-team#422