]> git.lizzy.rs Git - rust.git/commit
rustbuild: Enable cross-compiling LLVM
authorAlex Crichton <alex@alexcrichton.com>
Thu, 25 Feb 2016 01:09:17 +0000 (17:09 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 28 Feb 2016 18:50:13 +0000 (10:50 -0800)
commit526640668d1d7469e0c767452bb5ac60c3fa0043
tree1a8650d71f081731c9a5b2317705a130c81dead4
parenta707a61caed22687b0a2ea9a4eea855109eafb26
rustbuild: Enable cross-compiling LLVM

Currently all multi-host builds assume the the build platform can run the
`llvm-config` binary generated for each host platform we're creating a compiler
for. Unfortunately this assumption isn't always true when cross compiling, so we
need to handle this case.

This commit alters the build script of `rustc_llvm` to understand when it's
running an `llvm-config` which is different than the platform we're targeting for.
src/bootstrap/build/compile.rs
src/librustc_llvm/build.rs