Skip to content
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

Allow configuring codegen-backends directory name #48263

Closed
Keruspe opened this issue Feb 16, 2018 · 0 comments
Closed

Allow configuring codegen-backends directory name #48263

Keruspe opened this issue Feb 16, 2018 · 0 comments
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@Keruspe
Copy link
Contributor

Keruspe commented Feb 16, 2018

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?

@pietroalbini pietroalbini added C-enhancement Category: An issue proposing an enhancement or a PR with one. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) WG-infra-rustbuild labels Feb 20, 2018
Keruspe added a commit to Keruspe/rust that referenced this issue Mar 2, 2018
This allows to parallel-install several versions of rust system-wide
Fixes rust-lang#48263

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
kennytm added a commit to kennytm/rust that referenced this issue Mar 3, 2018
make codegen-backends directory name configurable

This allows to parallel-install several versions of rust system-wide
Fixes rust-lang#48263
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

2 participants