Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Don't use static crt by default when build proc-macro #69519
Don't use static crt by default when build proc-macro #69519
Changes from 4 commits
7ca1b2f
7996df9
89aebbd
84349cc
dbed65a
7a89bf1
75e6cfc
cfff1b4
afd374f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This test doesn't depend on any musl-specific functionality, so I would expect it to run everywhere.
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.
It depend on musl target but CI don't have it.
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.
Which CI job was it? This is a problem with the CI configuration, not something that needs to be worked around in the test. Specifically, the musl targets built by CI are missing the dynamic version of
libstd
. To fix this, they need to be built withcrt_static=false
(theconfig.toml
option, not the rustc flag), like thedist-x86_64-musl
job does:rust/src/ci/docker/dist-x86_64-musl/Dockerfile
Line 37 in 1d5241c
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.
@smaeul it failed on
x86_64-gnu-llvm-7
.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.
The
x86_64-gnu-llvm-7
job only builds forx86_64-unknown-linux-gnu
. It doesn't look like it does anything with musl at all. So where did"--target=x86_64-unknown-linux-musl"
in the rustc arguments for this test come from?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.
Oh, I see, the old version of the test had
compile-flags: --target=x86_64-unknown-linux-musl
in it. That was the problem. After removing that line, the test should work on all targets.So since the behavior tested here is not musl-specific, I would suggest 1) removing
only-musl
and 2) renaming the test to mentioncrt-static
instead ofmusl
.