-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
Use musl as target_libc on linux #155
Comments
Thanks. Please send a PR. I actually never looked into what |
Just out of curiosity, what should be the correct value for |
@rrbutani I think you have mentioned |
I do not, sorry. I've mentioned using musl to produce a statically linked toolchain (which @dzbarsky recently did) and potentially then having the toolchain use musl for the binaries it creates but this was mostly aspirational; I don't have a proof of concept. I think I can answer @junhyeokahn's question though: as far as I'm aware the values passed to
With respect to creating a toolchain that uses Linking against There's good prior art from the (for clang, it may also be possible to use Ultimately we might want to model The one caveat that comes to mind is that we'd need to do something about If someone else wants to give this a go, I'm happy to try to answer questions but unfortunately I don't have the bandwidth to work on this for the foreseeable future. |
Currently, glic_unknown is used for libc when running on linux as can be seen here: https://github.com/grailbio/bazel-toolchain/blob/3cf6c59742b58980093e2062e9ec056c3bd492e5/toolchain/cc_toolchain_config.bzl#L76
This is unfortunate, because it makes the toolchain non-hermetic in that any binary which depends on being compiled with libc is now dependent upon the system installed version of libc rather than one being provided by the toolchain on linux.
Musl is specifically designed to compat this issue and I'd love to have this toolchain make use of it and become even more hermetic.
The text was updated successfully, but these errors were encountered: