Enable optimization flags & CET

Fix #13855, close #13869
This commit is contained in:
ozone10 2023-03-09 16:56:58 +01:00 committed by Don Ho
parent 9122dc64fa
commit eef91b0214
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,7 @@
<AdditionalOptions>/Zc:__cplusplus /source-charset:utf-8 /Zc:strictStrings /w15262 %(AdditionalOptions)</AdditionalOptions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
<LanguageStandard_C>stdc17</LanguageStandard_C>
<TreatAngleIncludeAsExternal>true</TreatAngleIncludeAsExternal>
<DisableAnalyzeExternal>true</DisableAnalyzeExternal>
<!--If code analysis is enabled for external code, use only Microsoft Native Recommended Rules-->
@ -84,6 +85,7 @@
<ClCompile>
<Optimization>MaxSpeed</Optimization>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<OmitFramePointers>true</OmitFramePointers>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
@ -134,18 +136,22 @@ copy "..\src\contextMenu.xml" "$(OutDir)contextMenu.xml"
<Link>
<TargetMachine>MachineX86</TargetMachine>
<MinimumRequiredVersion>6.00</MinimumRequiredVersion>
<CETCompat>true</CETCompat>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
<Link>
<TargetMachine>MachineX64</TargetMachine>
<MinimumRequiredVersion>6.00</MinimumRequiredVersion>
<LargeAddressAware>true</LargeAddressAware>
<CETCompat>true</CETCompat>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Platform)'=='ARM64'">
<Link>
<AdditionalDependencies>gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<MinimumRequiredVersion>6.02</MinimumRequiredVersion>
<LargeAddressAware>true</LargeAddressAware>
<CETCompat>false</CETCompat>
</Link>
</ItemDefinitionGroup>