Closed
Description
Reasons for:
- Performance. According to this reddit message, musl caused a program to run 9x slower. Musl is also known to be slower in certain configurations in C. This varies a lot with the use case and some might even see a performance increase with musl.
- Smaller docker containers using
FROM scratch
. example using musl
It is possible to link glibc statically as demonstrated here.
From what I can tell, on the user facing side, this would be enable using -C target-feature=+crt-static
as described in the reference.
Metadata
Metadata
Assignees
Labels
Area: linking into static, shared libraries and binariesArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsCategory: A feature request, i.e: not implemented / a PR.Relevant to the compiler team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.