Skip to content

Commit 41e378a

Browse files
committed
Merge bitcoin#29045: msvc: Optimize "Release" builds
6e0f1d2 msvc: Optimize "Release" builds (Hennadii Stepanov) Pull request description: It is awkward not using optimization. In addition to the obvious benefits for Windows users, this PR reduces the duration of functional tests by an hour. Picked from bitcoin#24773. ACKs for top commit: sipsorcery: tACK 6e0f1d2. Tree-SHA512: 5aa7fd38cb1a81d58ea3206756a8099891866c82a747d3b8079cab0b2afa1f40ba53adff2f32eb233efcd1227babee80ab175e35a83678fafa8a4f63c356e5ca
2 parents 84bbee7 + 6e0f1d2 commit 41e378a

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)