diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-04-23 00:25:39 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-04-23 00:33:21 -0400 |
| commit | 7d4c3889d4e11bdc2e204be2fd4f7c136f8c0f1a (patch) | |
| tree | 16490635944e4ddee557934ac422c4aa5d2d1714 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 7f4afdf0255600306bf67432da722c7b5d2cbf82 (diff) | |
| download | rust-7d4c3889d4e11bdc2e204be2fd4f7c136f8c0f1a.tar.gz rust-7d4c3889d4e11bdc2e204be2fd4f7c136f8c0f1a.zip | |
Allow running `x.py test src/test/linkchecker` with `download-llvm = true`
Previously, the LD_LIBRARY_PATH for the linkchecker looked like `build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib`, because the linkchecker depends on the master copy of the standard library. This is true, but doesn't include the library path for the compiler libraries: ``` /home/joshua/src/rust/rust/build/x86_64-unknown-linux-gnu/stage1-tools-bin/error_index_generator: error while loading shared libraries: libLLVM-12-rust-1.53.0-nightly.so: cannot open shared object file: No such file or directory ``` That file is in `build/x86_64-unknown-linux-gnu/stage1/lib/libLLVM-12-rust-1.53.0-nightly.so`, which wasn't included in the dynamic path. This adds `build/x86_64-unknown-linux-gnu/stage1/lib` to the dynamic path for the linkchecker.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions
