Skip to content

Deps: compiler_builtins #15

Open
Open
@ehuss

Description

@ehuss

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-needs-designStatus: needs design workimplementationImplementation exploration and tracking issuesplan before stabilizationThis needs a plan for how to address before stabilization, but does not need to be implemented.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions