diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-01-21 17:47:57 -0700 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-01-26 08:02:08 -0700 |
| commit | 2d21df8a3fd7a68ba9f52389ead7f06f13190c12 (patch) | |
| tree | c8226fed3da77b0c51cd998e6dac74201109a6ac /src/liballoc/tests | |
| parent | b7f030e114186890612872c89498cbc914c0220f (diff) | |
| download | rust-2d21df8a3fd7a68ba9f52389ead7f06f13190c12.tar.gz rust-2d21df8a3fd7a68ba9f52389ead7f06f13190c12.zip | |
Workaround presence of LLVM library in stage0/lib
This commit works around the newly-introduced LLVM shared library. This is needed such that llvm-config run from librustc_llvm's build script can correctly locate it's own LLVM, not the one in stage0/lib. The LLVM build system uses the DT_RUNPATH/RUNPATH header within the llvm-config binary, which we want to use, but because Cargo always adds the host compiler's "libdir" (stage0/lib in our case) to the dynamic linker's search path, we weren't properly finding the freshly-built LLVM in llvm/lib. By restoring the environment variable setting the search path to what bootstrap sees, the problem is resolved and librustc_llvm correctly links and finds the appropriate LLVM. Several run-make-fulldeps tests are also updated with similar handling.
Diffstat (limited to 'src/liballoc/tests')
0 files changed, 0 insertions, 0 deletions
