-
Notifications
You must be signed in to change notification settings - Fork 105
Add musl-dev
#259
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
Add musl-dev
#259
Conversation
`gcc` is already a package installed, but it does not install a `libc` candidate with it. `musl-dev` contains the necessary development files (`crti.o`, `crtn.o`, `Scrt1.o`, `libc.so`, etc.). This was prior requested in rust-lang#68 and is necessary for `proc-macro`s/build scripts to compile, without additional configuration/setup. It also is apparently just a 2% size increase which many consumers are already incurring due to how only effectively bare-metal compilation is possible without it.
Muscraft
left a comment
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.
I looked into this for a while last night, and I think that this is a good change to make. The improved user experience is well worth the ~2% size increase in my opinion, especially when you consider how many people pull it in themselves.
|
|
||
| RUN apk add --no-cache \ | ||
| ca-certificates \ | ||
| musl-dev \ |
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.
Can you add this to the Alpine Dockerfiles in both nightly/ and stable/?
You should be able to update all of them at once by running:
./x.py update
|
Updated. Apologies for not doing so when I first made the PR, and thanks for telling me how to :) |
It's already included by default starting from rust-lang/docker-rust#259
It's already included by default starting from rust-lang/docker-rust#259
It's already included by default starting from rust-lang/docker-rust#259
It's already included by default starting from rust-lang/docker-rust#259
It's already included by default starting from rust-lang/docker-rust#259
gccis already a package installed, but it does not install alibccandidate with it.musl-devcontains the necessary development files (crti.o,crtn.o,Scrt1.o,libc.so, etc.).This was prior requested in #68 and is necessary for
proc-macros/build scripts to compile, without additional configuration/setup. It also is apparently just a 2% size increase which many consumers are already incurring due to how only effectively-bare-metal compilation is possible without it.