Skip to content

Commit 6e0f1d2

Browse files
committed
msvc: Optimize "Release" builds
It is awkward not using optimization.
1 parent 3e69125 commit 6e0f1d2

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

build_msvc/common.init.vcxproj.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
5959
<ClCompile>
60-
<Optimization>Disabled</Optimization>
60+
<Optimization>MaxSpeed</Optimization>
6161
<WholeProgramOptimization>false</WholeProgramOptimization>
6262
<FunctionLevelLinking>true</FunctionLevelLinking>
6363
<IntrinsicFunctions>true</IntrinsicFunctions>

build_msvc/libleveldb/libleveldb.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<ItemDefinitionGroup>
5252
<ClCompile>
5353
<PreprocessorDefinitions>HAVE_CRC32C=0;HAVE_SNAPPY=0;LEVELDB_IS_BIG_ENDIAN=0;_UNICODE;UNICODE;_CRT_NONSTDC_NO_DEPRECATE;LEVELDB_PLATFORM_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
54-
<DisableSpecificWarnings>4244;4267</DisableSpecificWarnings>
54+
<DisableSpecificWarnings>4244;4267;4722</DisableSpecificWarnings>
5555
<AdditionalIncludeDirectories>..\..\src\leveldb;..\..\src\leveldb\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
5656
</ClCompile>
5757
</ItemDefinitionGroup>

build_msvc/test_bitcoin/test_bitcoin.vcxproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@
5959
<Project>{18430fef-6b61-4c53-b396-718e02850f1b}</Project>
6060
</ProjectReference>
6161
</ItemGroup>
62+
<ItemDefinitionGroup>
63+
<ClCompile>
64+
<DisableSpecificWarnings>4018;4244;4267;4703;4715;4805</DisableSpecificWarnings>
65+
</ClCompile>
66+
</ItemDefinitionGroup>
6267
<Target Name="RawBenchHeaderGen" BeforeTargets="PrepareForBuild">
6368
<PropertyGroup>
6469
<ErrorText>There was an error executing the JSON test header generation task.</ErrorText>

0 commit comments

Comments
 (0)