Skip to content

Commit

Permalink
Update VS props.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Nov 24, 2022
1 parent 0754357 commit e737149
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 22 deletions.
13 changes: 9 additions & 4 deletions builds/msvc/properties/Common.props
@@ -1,18 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<_PropertySheetDisplayName>Common Settings</_PropertySheetDisplayName>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>

<ImportGroup Label="PropertySheets">
<Import Project="$(Platform).props" />
</ImportGroup>
</ImportGroup>

<PropertyGroup Label="Configuration">
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
</PropertyGroup>

<ItemDefinitionGroup>
<ClCompile>
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
<PreprocessorDefinitions>UNICODE;_UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>

<!-- General -->
Expand All @@ -23,7 +26,8 @@
<MultiProcessorCompilation>true</MultiProcessorCompilation>

<!-- Language -->
<!-- Language extensions are enabled by default (required for STL/Boost). -->
<!-- /Zc is conformance mode. -->
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
<EnforceTypeConversionRules>true</EnforceTypeConversionRules>
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<OpenMPSupport>false</OpenMPSupport>
Expand All @@ -38,6 +42,7 @@

<!-- External Includes -->
<!-- ExternalWarningLevel:EnableAllWarnings produce warning flood (mostly from STL/Boost). -->
<!-- Language extensions are enabled by default (required for STL/Boost). -->
<ExternalWarningLevel>Level4</ExternalWarningLevel>
</ClCompile>
</ItemDefinitionGroup>
Expand Down
1 change: 1 addition & 0 deletions builds/msvc/properties/Debug.props
Expand Up @@ -12,6 +12,7 @@

<ItemDefinitionGroup>
<ClCompile>
<!-- This is 'both' in VS opions, incompatible with Optimization::MaxSpeed. -->
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand Down
1 change: 0 additions & 1 deletion builds/msvc/properties/DebugDEXE.props
Expand Up @@ -14,7 +14,6 @@
<ItemDefinitionGroup>
<ClCompile>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<LinkIncremental>true</LinkIncremental>
</ClCompile>
</ItemDefinitionGroup>

Expand Down
1 change: 0 additions & 1 deletion builds/msvc/properties/DebugDLL.props
Expand Up @@ -13,7 +13,6 @@
<ItemDefinitionGroup>
<ClCompile>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<LinkIncremental>true</LinkIncremental>
</ClCompile>
</ItemDefinitionGroup>

Expand Down
2 changes: 0 additions & 2 deletions builds/msvc/properties/DebugLIB.props
Expand Up @@ -12,9 +12,7 @@

<ItemDefinitionGroup>
<ClCompile>
<DebugInformationFormat>OldStyle</DebugInformationFormat>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<LinkIncremental>true</LinkIncremental>
</ClCompile>
</ItemDefinitionGroup>

Expand Down
1 change: 0 additions & 1 deletion builds/msvc/properties/DebugLTCG.props
Expand Up @@ -12,7 +12,6 @@

<ItemDefinitionGroup>
<ClCompile>
<DebugInformationFormat>OldStyle</DebugInformationFormat>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
</ClCompile>
</ItemDefinitionGroup>
Expand Down
1 change: 0 additions & 1 deletion builds/msvc/properties/DebugSEXE.props
Expand Up @@ -14,7 +14,6 @@
<ItemDefinitionGroup>
<ClCompile>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<LinkIncremental>true</LinkIncremental>
</ClCompile>
</ItemDefinitionGroup>

Expand Down
34 changes: 22 additions & 12 deletions builds/msvc/properties/Release.props
Expand Up @@ -11,31 +11,41 @@
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>

<!-- DebugInformationFormat and GenerateDebugInformation were formerly disabled. -->
<!-- This is why we were not getting symbols in release builds (update nuget). -->
<ItemDefinitionGroup>
<ClCompile>
<AdditionalOptions>/Oy- %(AdditionalOptions)</AdditionalOptions>
<!--<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>-->
<!-- performance -->
<BufferSecurityCheck>false</BufferSecurityCheck>
<!-- Breaks boost.test. -->
<!--<CallingConvention>FastCall</CallingConvention>-->
<ControlFlowGuard>false</ControlFlowGuard>
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
<EnableParallelCodeGeneration>true</EnableParallelCodeGeneration>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<FunctionLevelLinking>true</FunctionLevelLinking>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<IntrinsicFunctions>true</IntrinsicFunctions>
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<MinimalRebuild>false</MinimalRebuild>
<OmitFramePointers>true</OmitFramePointers>
<Optimization>MaxSpeed</Optimization>

<!-- SSE4/AVX2 (also AVX512) -->
<!--TODO: these should be integrated with the HAVE build options.-->
<!--<EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>-->
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>

<!-- Other. -->
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<StringPooling>true</StringPooling>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<!--<GenerateDebugInformation>true</GenerateDebugInformation>-->
<GenerateDebugInformation>true</GenerateDebugInformation>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>

<ItemDefinitionGroup Condition="'$(Processor)' == 'x86'">
<ClCompile>
<EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
</ClCompile>
</ItemDefinitionGroup>

</Project>

0 comments on commit e737149

Please sign in to comment.