Files
third_party_rust_rust/src
bors b1da18fe9b Auto merge of #37822 - cuviper:llvm-link-shared, r=alexcrichton
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.

Update: 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.
2016-11-19 08:08:26 -08:00
..
2016-11-16 22:42:07 +01:00
2016-10-22 07:08:06 -07:00
2016-11-12 12:47:13 -07:00
2016-10-12 23:45:03 +05:30
2016-10-12 08:40:22 +13:00
2016-11-17 08:16:32 +00:00
2016-11-16 21:13:44 +01:00
2016-11-06 18:20:38 +01:00
2016-10-22 07:08:06 -07:00
2016-10-14 17:21:11 +03:00
2016-11-08 07:32:05 -08:00
2016-11-18 11:31:44 +01:00