]> git.lizzy.rs Git - rust.git/commit
Pass LLVM linker flags to librustc_llvm build
authorPetr Hosek <phosek@google.com>
Sun, 9 Jun 2019 23:28:25 +0000 (16:28 -0700)
committerPetr Hosek <phosek@google.com>
Tue, 11 Jun 2019 02:50:34 +0000 (19:50 -0700)
commit48f205d496213ac64e7596b1e3e3807b28833e14
treeb8b15258f6de125ce784d5000ee15ab533a4e7c0
parent8b36867093fb774bcbd9f787cbc470a5f44c1310
Pass LLVM linker flags to librustc_llvm build

Some -L and -l flags may be needed even when building librustc_llvm,
for example when using static libc++ on Linux we may need to manually
specify the library search path and -ldl -lpthread as additional link
dependencies. We pass LLVM linker flags from config to librustc_llvm
build to make sure these cases are handled.
src/bootstrap/compile.rs
src/librustc_llvm/build.rs