Skip to content

Allow configuring codegen-backends directory name #48263

Closed
@Keruspe

Description

@Keruspe

Currently, codegen backends are installed as e.g. /usr/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_trans-llvm.so

As there is no hash or such in the library name (like there is for all the rust libraries shipped with rustc), installing several versions of rust is not possible as there would be a file conflict.
On exherbo we can install rust stable, rust beta and rust nightly, but with these codegen backends we cannot anymore. It would be great to either have a hash in the library name, or to be able to change codegen-backends to e.g. codegen-backends-beta in config.toml at build time, for example.

Would such a patch be accepted? Which of the two options would be preferred?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions