1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/tools/msbuild/llvm-general.xml
Russell Gallop 0f863f5b92 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

llvm-svn: 359430
2019-04-29 10:10:17 +00:00

77 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Rule
Name="LLVMGeneral"
DisplayName="LLVM"
PageTemplate="generic"
Description="LLVM"
xmlns="http://schemas.microsoft.com/build/2009/properties">
<Rule.Categories>
<Category Name="General" DisplayName="General" Description="General" />
</Rule.Categories>
<Rule.DataSource>
<DataSource Persistence="ProjectFile" Label="LLVM" />
</Rule.DataSource>
<BoolProperty Name="UseClangCl"
DisplayName="Use clang-cl"
Description="Use clang-cl for compiling. If this option is disabled, the Microsoft compiler (cl.exe) will be used instead."
Category="General"
Default="true">
</BoolProperty>
<StringProperty Name="ClangClExecutable"
DisplayName="clang-cl Executable"
Description="Specifies the path to clang-cl.exe."
Category="General"
Default="$(LLVMInstallDir)bin\clang-cl.exe"
Subtype="file">
</StringProperty>
<StringProperty Name="ClangClAdditionalOptions"
DisplayName="Additional Compiler Options"
Description="Additional options to pass to clang. This is essentially the same as C/C++ > Command Line > Additional Options, except that it is safe to put options here that will be rejected by cl.exe in case you switch toolchains back and forth."
Category="General">
</StringProperty>
<BoolProperty Name="UseLldLink"
DisplayName="Use lld-link"
Description="Use lld-link for linking. If this option is disabled, the Microsoft linker (link.exe) will be used instead."
Category="General"
Default="true">
</BoolProperty>
<StringProperty Name="LldLinkExecutable"
DisplayName="lld-link Executable"
Description="Specifies the path to lld-link.exe."
Category="General"
Default="$(LLVMInstallDir)bin\lld-link.exe"
Subtype="file">
</StringProperty>
<StringProperty Name="LldLinkAdditionalOptions"
DisplayName="Additional Linker Options"
Description="Additional options to pass to lld-link. This is essentially the same as General > Linker > Command Line > Additional Options, except that it is safe to put options here that will be rejected by link.exe in case you switch toolchains back and forth."
Category="General">
</StringProperty>
<BoolProperty Name="UseLlvmLib"
DisplayName="Use llvm-lib"
Description="Use llvm-lib for managing libraries. If this option is disabled, the Microsoft librarian (lib.exe) will be used instead."
Category="General"
Default="true">
</BoolProperty>
<StringProperty Name="LlvmLibExecutable"
DisplayName="llvm-lib Executable"
Description="Specifies the path to llvm-lib.exe."
Category="General"
Default="$(LLVMInstallDir)bin\llvm-lib.exe"
Subtype="file">
</StringProperty>
<StringProperty Name="LlvmLibAdditionalOptions"
DisplayName="Additional Librarian Options"
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."
Category="General">
</StringProperty>
</Rule>