Skip to content
This repository was archived by the owner on Sep 22, 2018. It is now read-only.

Commit ff3cf79

Browse files
author
Arnavion
committed
glib: Enable WholeProgramOptimization for gobject, and disable OptimizeReferences since it breaks G_DEFINE_CONSTRUCTOR
1 parent 2f3c96d commit ff3cf79

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

glib/build/win32/vs12/gobject.vcxproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@
9999
</ItemDefinitionGroup>
100100
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
101101
<ClCompile>
102-
<WholeProgramOptimization>false</WholeProgramOptimization>
103102
<PreprocessorDefinitions>$(GObjectBuildDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
104103
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
105104
<PrecompiledHeader>
@@ -113,7 +112,7 @@
113112
<GenerateDebugInformation>true</GenerateDebugInformation>
114113
<ProgramDatabaseFile>$(OutDir)$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).pdb</ProgramDatabaseFile>
115114
<SubSystem>Windows</SubSystem>
116-
<OptimizeReferences>true</OptimizeReferences>
115+
<OptimizeReferences>false</OptimizeReferences>
117116
<EnableCOMDATFolding>true</EnableCOMDATFolding>
118117
<LinkTimeCodeGeneration>
119118
</LinkTimeCodeGeneration>
@@ -150,7 +149,6 @@
150149
</ItemDefinitionGroup>
151150
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
152151
<ClCompile>
153-
<WholeProgramOptimization>false</WholeProgramOptimization>
154152
<PreprocessorDefinitions>$(GObjectBuildDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
155153
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
156154
<PrecompiledHeader>
@@ -164,7 +162,7 @@
164162
<GenerateDebugInformation>true</GenerateDebugInformation>
165163
<ProgramDatabaseFile>$(OutDir)$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).pdb</ProgramDatabaseFile>
166164
<SubSystem>Windows</SubSystem>
167-
<OptimizeReferences>true</OptimizeReferences>
165+
<OptimizeReferences>false</OptimizeReferences>
168166
<EnableCOMDATFolding>true</EnableCOMDATFolding>
169167
<LinkTimeCodeGeneration>
170168
</LinkTimeCodeGeneration>

glib/mod.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313
`<GlibSeparateVSDllSuffix>-2.0</GlibSeparateVSDllSuffix>`
1414
* `<PythonPath>c:\python27</PythonPath>` with
1515
`<PythonPath>..\..\..\..\..\....\..\python-2.7\$(Platform)</PythonPath>`
16+
* In gobject.vcxproj:
17+
* Remove `<WholeProgramOptimization>false</WholeProgramOptimization>`
18+
* Change `<OptimizeReferences>true</OptimizeReferences>` to `<OptimizeReferences>false</OptimizeReferences>`

0 commit comments

Comments
 (0)