llvm.org GIT mirror llvm / 6905c42
vs integration: Use llvm-lib for librarian 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 Revision: https://reviews.llvm.org/D61193 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359430 91177308-0d34-0410-b5e6-96231b3b80d8 Russell Gallop 1 year, 5 months ago
3 changed file(s) with 24 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
4141 $(LLVMInstallDir)\
4242 $(LLVMInstallDir)bin\clang-cl.exe
4343 $(LLVMInstallDir)bin\lld-link.exe
44 $(LLVMInstallDir)bin\llvm-lib.exe
4445 true
4546 true
47 true
4648
4749
4850
88 that the user may have overridden in the UI. -->
99 $(ClangClExecutable)
1010 $(LldLinkExecutable)
11 $(LlvmLibExecutable)
1112
1213
1314
5151 Category="General">
5252
5353
54
55
56 DisplayName="Use llvm-lib"
57 Description="Use llvm-lib for managing libraries. If this option is disabled, the Microsoft librarian (lib.exe) will be used instead."
58 Category="General"
59 Default="true">
60
61
62 DisplayName="llvm-lib Executable"
63 Description="Specifies the path to llvm-lib.exe."
64 Category="General"
65 Default="$(LLVMInstallDir)bin\llvm-lib.exe"
66 Subtype="file">
67
68
69
70 DisplayName="Additional Librarian Options"
71 Description="Additional options to pass to llvm-lib. This is essentially the same as General > Librarian > Command Line > Additional Options, except that it is safe to put options here that will be rejected by lib.exe in case you switch toolchains back and forth."
72 Category="General">
73
74
5475