about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorJosh Stone <cuviper@gmail.com>2016-11-16 23:28:14 -0800
committerJosh Stone <cuviper@gmail.com>2016-11-16 23:28:14 -0800
commitf13391a60386fc022761c2aa03f13958d757f2ce (patch)
tree335415a69a25d7a43156a5c6fab2f4d1c705e490 /src/test/run-pass/thinlto
parentf22fdb03ebb684c1dee1b38990918df6a4537481 (diff)
downloadrust-f13391a60386fc022761c2aa03f13958d757f2ce.tar.gz
rust-f13391a60386fc022761c2aa03f13958d757f2ce.zip
rustbuild: allow dynamically linking LLVM
The makefiles and `mklldeps.py` called `llvm-config --shared-mode` to
find out if LLVM defaulted to shared or static libraries, and just went
with that.  But under rustbuild, `librustc_llvm/build.rs` was assuming
that LLVM should be static, and even forcing `--link-static` for 3.9+.

Now that build script also uses `--shared-mode` to learn the default,
which should work better for pre-3.9 configured for dynamic linking, as
it wasn't possible back then to choose differently via `llvm-config`.

Further, the configure script now has a new `--enable-llvm-link-shared`
option, which allows one to manually override `--link-shared` on 3.9+
instead of forcing static.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions