From 03e60dc1c1f94345ed92aca4d9a6a2f17e48f690 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 23 Oct 2015 09:52:40 +0800 Subject: MSVC release builds: Ensure that /LTCG is used MSVC 2015 changed its default link-time code generation setting to /LTCG:incremental, which causes problems if /opt:noref is to be used, meaning that some code will be optimized out by the linker. Avoid this situtation here by enforcing the use of /LTCG for MSVC 2010+ builds. --- build/win32/vs10/pango.vcxprojin | 10 ++++++---- build/win32/vs10/pangocairo.vcxprojin | 21 +++++++++++++-------- build/win32/vs10/pangoft2.vcxprojin | 10 ++++++---- build/win32/vs10/pangowin32.vcxprojin | 10 ++++++---- 4 files changed, 31 insertions(+), 20 deletions(-) diff --git a/build/win32/vs10/pango.vcxprojin b/build/win32/vs10/pango.vcxprojin index e24b4ca1..093c20cf 100644 --- a/build/win32/vs10/pango.vcxprojin +++ b/build/win32/vs10/pango.vcxprojin @@ -87,9 +87,9 @@ $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pango.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows - $(TargetDir)$(ProjectName)-$(ApiVersion).lib MachineX86 @@ -104,12 +104,13 @@ $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll + $(TargetDir)$(ProjectName)-$(ApiVersion).lib ..\..\..\pango\pango.def true Windows true true - $(TargetDir)$(ProjectName)-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX86 @@ -128,9 +129,9 @@ $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pango.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows - $(TargetDir)$(ProjectName)-$(ApiVersion).lib MachineX64 @@ -146,11 +147,12 @@ $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pango.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows true true - $(TargetDir)$(ProjectName)-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX64 diff --git a/build/win32/vs10/pangocairo.vcxprojin b/build/win32/vs10/pangocairo.vcxprojin index a2fa5169..60af4416 100644 --- a/build/win32/vs10/pangocairo.vcxprojin +++ b/build/win32/vs10/pangocairo.vcxprojin @@ -151,9 +151,9 @@ $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll $(OutDir)pangoft2-$(ApiVersion).lib;%(IgnoreSpecificDefaultLibraries) ..\..\..\pango\pangocairo.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows - $(TargetDir)$(ProjectName)-$(ApiVersion).lib MachineX86 @@ -171,11 +171,12 @@ $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll $(OutDir)pangoft2-$(ApiVersion).lib;%(IgnoreSpecificDefaultLibraries) ..\..\..\pango\pangocairo.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows true true - $(TargetDir)$(ProjectName)-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX86 @@ -196,9 +197,10 @@ $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll $(OutDir)pangoft2-$(ApiVersion).lib;%(IgnoreSpecificDefaultLibraries) ..\..\..\pango\pangocairo.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows - $(TargetDir)$(ProjectName)-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX64 @@ -215,11 +217,12 @@ cairo.lib;%(AdditionalDependencies) $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pangocairo.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows true true - $(TargetDir)$(ProjectName)-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX64 @@ -239,9 +242,9 @@ cairo.lib;$(PangoFT2Libs);%(AdditionalDependencies) $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pangocairo.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows - $(TargetDir)$(ProjectName)-$(ApiVersion).lib MachineX86 @@ -258,11 +261,12 @@ cairo.lib;$(PangoFT2Libs);%(AdditionalDependencies) $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pangocairo.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows true true - $(TargetDir)$(ProjectName)-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX86 @@ -282,9 +286,9 @@ cairo.lib;$(PangoFT2Libs);%(AdditionalDependencies) $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pangocairo.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows - $(TargetDir)$(ProjectName)-$(ApiVersion).lib MachineX64 @@ -301,11 +305,12 @@ cairo.lib;$(PangoFT2Libs);%(AdditionalDependencies) $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pangocairo.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows true true - $(TargetDir)$(ProjectName)-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX64 diff --git a/build/win32/vs10/pangoft2.vcxprojin b/build/win32/vs10/pangoft2.vcxprojin index c811d789..e9a59a08 100644 --- a/build/win32/vs10/pangoft2.vcxprojin +++ b/build/win32/vs10/pangoft2.vcxprojin @@ -89,9 +89,9 @@ $(PangoFT2Libs);%(AdditionalDependencies) $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pangoft2.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows - $(TargetDir)$(ProjectName)-$(ApiVersion).lib MachineX86 @@ -109,11 +109,12 @@ $(PangoFT2Libs);%(AdditionalDependencies) $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pangoft2.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows true true - $(TargetDir)$(ProjectName)-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX86 @@ -134,9 +135,9 @@ $(PangoFT2Libs);%(AdditionalDependencies) $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pangoft2.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows - $(TargetDir)$(ProjectName)-$(ApiVersion).lib MachineX64 @@ -154,11 +155,12 @@ $(PangoFT2Libs);%(AdditionalDependencies) $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pangoft2.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows true true - $(TargetDir)$(ProjectName)-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX64 diff --git a/build/win32/vs10/pangowin32.vcxprojin b/build/win32/vs10/pangowin32.vcxprojin index 31b5cc2f..169afe74 100644 --- a/build/win32/vs10/pangowin32.vcxprojin +++ b/build/win32/vs10/pangowin32.vcxprojin @@ -104,9 +104,9 @@ usp10.lib;%(AdditionalDependencies) $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pangowin32.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows - $(TargetDir)$(ProjectName)-$(ApiVersion).lib MachineX86 @@ -123,11 +123,12 @@ usp10.lib;%(AdditionalDependencies) $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pangowin32.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows true true - $(TargetDir)$(ProjectName)-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX86 @@ -147,9 +148,9 @@ usp10.lib;%(AdditionalDependencies) $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pangowin32.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows - $(TargetDir)$(ProjectName)-$(ApiVersion).lib MachineX64 @@ -166,11 +167,12 @@ usp10.lib;%(AdditionalDependencies) $(OutDir)$(PangoDllPrefix)$(ProjectName)$(PangoDllSuffix).dll ..\..\..\pango\pangowin32.def + $(TargetDir)$(ProjectName)-$(ApiVersion).lib true Windows true true - $(TargetDir)$(ProjectName)-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX64 -- cgit v1.2.1