[llvm-dev] Why is LTO built as a shared lib?

Antoine Pitrou via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 26 04:28:36 PST 2016


On Tue, 26 Jan 2016 12:08:35 +0000
David Chisnall via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> libLTO is a loadable library that linkers use to call into LLVM to do link-time optimisation.  It doesn’t make sense for it to be a static library.  I’m not 100% convinced that it makes sense for it to be built on Windows at all, because (as far as I am aware) neither Gold nor ld64 (the two current consumers of libLTO) are supported on Windows.

Thank you. I didn't have this issue on 3.6.1 (even though LTO.dll was
apparently built too), so perhaps something changed during 3.6.1 and
3.7.1 that added LTO to the libraries considered by
llvm_map_components_to_libnames().

Regards

Antoine.


More information about the llvm-dev mailing list