]> git.lizzy.rs Git - rust.git/commit
rustbuild: update the llvm link logic further
authorJosh Stone <cuviper@gmail.com>
Fri, 18 Nov 2016 05:50:59 +0000 (21:50 -0800)
committerJosh Stone <cuviper@gmail.com>
Fri, 18 Nov 2016 05:50:59 +0000 (21:50 -0800)
commitf3240377e6ebdff032e9275aee8dd461e9866cbb
tree1a51ce3c7b855c15abe6510605b849d91cb0771e
parentf13391a60386fc022761c2aa03f13958d757f2ce
rustbuild: update the llvm link logic further

There are now four static/shared scenarios that can happen for the
supported LLVM versions:

- 3.9+: By default use `llvm-config --link-static`
- 3.9+ and `--enable-llvm-link-shared`: Use `--link-shared` instead.
- 3.8: Use `llvm-config --shared-mode` and go with its answer.
- 3.7: Just assume static, maintaining the status quo.
src/librustc_llvm/build.rs