• M
    Workaround presence of LLVM library in stage0/lib · 2d21df8a
    Mark Rousskov 提交于
    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.
    2d21df8a
builder.rs 66.1 KB