This uses llvm-lib.exe for the librarian instead of Visual Studio
provided lib.exe. Without this it is not possible to create static
libraries with -flto using the plugin.
Original patch by Steven Noonan
This fixes: PR41147
Differential D61193
vs integration: Use llvm-lib for librarian russell.gallop on Apr 26 2019, 8:23 AM. Authored by
Details This uses llvm-lib.exe for the librarian instead of Visual Studio Original patch by Steven Noonan This fixes: PR41147
Diff Detail Event TimelineComment Actions LGTM. Also this maybe an independent change, but: One thing I ran into when running with this change locally was that llvm-lib.exe didn't like the /LTCG argument (IIRC it caused a fatal error and llvm-lib.exe refused to continue). This also affected lld-link.exe. I notice that LLVM.Cpp.Common.targets has a big list of options at the bottom that get automatically turned off for compatibility with the LLVM/clang-cl toolchain. Maybe we should add some for llvm-lib.exe and lld-link.exe to drop the /LTCG arguments? Or maybe remap /LTCG -> -flto=thin under the hood where relevant, or something. Comment Actions Thanks! I've rebuilt and published the extension: https://marketplace.visualstudio.com/items?itemName=LLVMExtensions.llvm-toolchain (version 1.0.359557). I also updated the manifest to add VS 2019 support. |