Bootstrap should allow overriding a dynamic library
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Hi.
I tried setting LD_LIBRARY_PATH to use a different libgccjit, but it doesn't seem to work anymore.
I expected that bootstrap would pick the libgccjit.so file from LD_LIBRARY_PATH.
Instead, bootstrap kept its version from build/x86_64-unknown-linux-gnu/stage2/lib.
Meta
I tried on commit 8aab621cd56bdc704f73c9d9aaa9f35ab5ee55b0.
Some more details.
I expect that some people would want to do something similar with LLVM.
What do people do to test a different LLVM version when hacking on rustc? Does it work by just setting LD_LIBRARY_PATH?
cc @Kobzol
Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue on commit 8aab621cd56bdc704f73c9d9aaa9f35ab5ee55b0 by setting LD_LIBRARY_PATH and checking build/x86_64-unknown-linux-gnu/stage2/lib. Start by tracing bootstrap's dynamic-library selection and compare the linked discussion for context. Done means bootstrap can use an overridden libgccjit.so, with the analogous LLVM behavior clarified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100