Open
Description
This issue is for working through the implementation issues for compiling compiler_builtins
.
The compiler_builtins
crate provides various intrinsics needed by the compiler. This presents some portability and compile-time issues when building your own standard library.
There is the c
feature of the crate that enables using a C compiler to build optimized versions of some intrinsics. This is the default for rustc.
There is the mem
feature which demangles some memory functions, used in no-std builds of alloc. (rust-lang/rust#56825)
It wants a different codegen-units: https://github.com/rust-lang/rust/blob/1a1cc050d8efc906ede39f444936ade1fdc9c6cb/library/Cargo.toml#L14-L25
I'm not sure exactly how this will fit in the std-aware Cargo story.