Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDon't force system LLVM libs to be linked staticly #28327
Conversation
rust-highfive
assigned
huonw
Sep 10, 2015
This comment has been minimized.
This comment has been minimized.
|
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
Unfortunately I don't think this is quite right because an external LLVM doesn't automatically imply non-static linkage (e.g. all external LLVM roots I've ever used have been static still). I think that #27937 is handling this as well (detecting there's only one LLVM lib and linking that dynamically), so I'm going to close this in favor of that. Thanks for the PR though! |
alexcrichton
closed this
Sep 10, 2015
This comment has been minimized.
This comment has been minimized.
|
#27937 does not fix this issue. With that patch rustc still fails to build on my system with lots of missing library errors. This should still work if the external LLVM root is static, because |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Linking via Perhaps this could be updated to instead detect when |
This comment has been minimized.
This comment has been minimized.
|
I think that, while I'll continue the discussion of #27937 over there, since the approach in this pull request isn't going to work without a lot of modification to something. |
wthrowe commentedSep 10, 2015
This allows building against an external LLVM installation that only includes dynamic libraries. When linking against bundled LLVM we still force static linking so the bundled LLVM libraries don't have to be installed.