Commit 670400ee authored by Chun-wei Fan's avatar Chun-wei Fan

gobject: MSVC builds-improve optimization a bit

Use whole program optimization (/GL) as we now use DllMain() to
initialize the library on Windows builds.

https://bugzilla.gnome.org/show_bug.cgi?id=752837
parent 7a29771a
......@@ -99,7 +99,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WholeProgramOptimization>false</WholeProgramOptimization>
<WholeProgramOptimization>true</WholeProgramOptimization>
<PreprocessorDefinitions>$(GObjectBuildDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<PrecompiledHeader>
......@@ -151,7 +151,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WholeProgramOptimization>false</WholeProgramOptimization>
<WholeProgramOptimization>true</WholeProgramOptimization>
<PreprocessorDefinitions>$(GObjectBuildDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<PrecompiledHeader>
......
......@@ -58,7 +58,7 @@
>
<Tool
Name="VCCLCompilerTool"
WholeProgramOptimization="false"
WholeProgramOptimization="true"
PreprocessorDefinitions="$(GObjectBuildDefines)"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
......@@ -120,7 +120,7 @@
>
<Tool
Name="VCCLCompilerTool"
WholeProgramOptimization="false"
WholeProgramOptimization="true"
PreprocessorDefinitions="$(GObjectBuildDefines)"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment