From 9bd58631bb8378f5dd9a7635b3347c858fe6ba15 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 23 Oct 2015 10:13:41 +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. Also rearrange some of the project files a bit for consistency. --- build/win32/vs10/gdk-pixbuf-csource.vcxproj | 2 ++ build/win32/vs10/gdk-pixbuf-pixdata.vcxproj | 42 ++++++++++++----------- build/win32/vs10/gdk-pixbuf-query-loaders.vcxproj | 42 ++++++++++++----------- build/win32/vs10/gdk-pixbuf.vcxprojin | 20 ++++++----- 4 files changed, 58 insertions(+), 48 deletions(-) diff --git a/build/win32/vs10/gdk-pixbuf-csource.vcxproj b/build/win32/vs10/gdk-pixbuf-csource.vcxproj index 6d03735ca..2376eb7a8 100644 --- a/build/win32/vs10/gdk-pixbuf-csource.vcxproj +++ b/build/win32/vs10/gdk-pixbuf-csource.vcxproj @@ -114,6 +114,7 @@ false + UseLinkTimeCodeGeneration MachineX86 @@ -161,6 +162,7 @@ false + UseLinkTimeCodeGeneration MachineX64 diff --git a/build/win32/vs10/gdk-pixbuf-pixdata.vcxproj b/build/win32/vs10/gdk-pixbuf-pixdata.vcxproj index c23b8779b..1bfb7b563 100644 --- a/build/win32/vs10/gdk-pixbuf-pixdata.vcxproj +++ b/build/win32/vs10/gdk-pixbuf-pixdata.vcxproj @@ -90,6 +90,27 @@ MachineX86 + + + MaxSpeed + true + $(GdkPixbufDefines);%(PreprocessorDefinitions) + MultiThreadedDLL + true + + + Level3 + ProgramDatabase + + + true + Console + true + true + UseLinkTimeCodeGeneration + MachineX86 + + Disabled @@ -114,26 +135,6 @@ MachineX64 - - - MaxSpeed - true - $(GdkPixbufDefines);%(PreprocessorDefinitions) - MultiThreadedDLL - true - - - Level3 - ProgramDatabase - - - true - Console - true - true - MachineX86 - - %(AdditionalIncludeDirectories) @@ -154,6 +155,7 @@ false + UseLinkTimeCodeGeneration MachineX64 diff --git a/build/win32/vs10/gdk-pixbuf-query-loaders.vcxproj b/build/win32/vs10/gdk-pixbuf-query-loaders.vcxproj index a87fa5dc5..3a5f19c26 100644 --- a/build/win32/vs10/gdk-pixbuf-query-loaders.vcxproj +++ b/build/win32/vs10/gdk-pixbuf-query-loaders.vcxproj @@ -92,50 +92,51 @@ MachineX86 - + - Disabled + MaxSpeed + true %(AdditionalIncludeDirectories) - _DEBUG;$(GdkPixbufDefines);$(GdkPixbufLibdirDefine);%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL + $(GdkPixbufDefines);$(GdkPixbufLibdirDefine);%(PreprocessorDefinitions) + MultiThreadedDLL + true Level3 ProgramDatabase - CompileAsC %(AdditionalDependencies) true Console - false - - - MachineX64 + true + true + UseLinkTimeCodeGeneration + MachineX86 - + - MaxSpeed - true + Disabled %(AdditionalIncludeDirectories) - $(GdkPixbufDefines);$(GdkPixbufLibdirDefine);%(PreprocessorDefinitions) - MultiThreadedDLL - true + _DEBUG;$(GdkPixbufDefines);$(GdkPixbufLibdirDefine);%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL Level3 ProgramDatabase + CompileAsC %(AdditionalDependencies) true Console - true - true - MachineX86 + false + + + MachineX64 @@ -158,6 +159,7 @@ false + UseLinkTimeCodeGeneration MachineX64 diff --git a/build/win32/vs10/gdk-pixbuf.vcxprojin b/build/win32/vs10/gdk-pixbuf.vcxprojin index 970728443..3e029387d 100644 --- a/build/win32/vs10/gdk-pixbuf.vcxprojin +++ b/build/win32/vs10/gdk-pixbuf.vcxprojin @@ -148,13 +148,13 @@ $(GdipLibs);%(AdditionalDependencies) $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).dll $(IntDir)\gdk-pixbuf.def + $(OutDir)gdk_pixbuf-$(ApiVersion).lib true $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).pdb Windows false - $(OutDir)gdk_pixbuf-$(ApiVersion).lib MachineX86 @@ -174,6 +174,7 @@ $(GdipLibs);%(AdditionalDependencies) $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).dll $(IntDir)\gdk-pixbuf.def + $(OutDir)gdk_pixbuf-$(ApiVersion).lib true $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).pdb Windows @@ -182,7 +183,7 @@ false - $(OutDir)gdk_pixbuf-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX86 @@ -202,11 +203,11 @@ $(GdipLibs);%(AdditionalDependencies) $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).dll + $(OutDir)gdk_pixbuf-$(ApiVersion).lib $(IntDir)\gdk-pixbuf.def true $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).pdb Windows - $(OutDir)gdk_pixbuf-$(ApiVersion).lib MachineX64 @@ -223,12 +224,13 @@ $(GdipLibs);%(AdditionalDependencies) $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).dll $(IntDir)\gdk-pixbuf.def + $(OutDir)gdk_pixbuf-$(ApiVersion).lib true $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).pdb Windows true true - $(OutDir)gdk_pixbuf-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX64 @@ -250,13 +252,13 @@ $(ImagingLibs);%(AdditionalDependencies) $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).dll $(IntDir)\gdk-pixbuf.def + $(OutDir)gdk_pixbuf-$(ApiVersion).lib true $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).pdb Windows false - $(OutDir)gdk_pixbuf-$(ApiVersion).lib MachineX86 @@ -276,6 +278,7 @@ $(ImagingLibs);%(AdditionalDependencies) $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).dll $(IntDir)\gdk-pixbuf.def + $(OutDir)gdk_pixbuf-$(ApiVersion).lib true $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).pdb Windows @@ -284,7 +287,7 @@ false - $(OutDir)gdk_pixbuf-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX86 @@ -304,11 +307,11 @@ $(ImagingLibs);%(AdditionalDependencies) $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).dll + $(OutDir)gdk_pixbuf-$(ApiVersion).lib $(IntDir)\gdk-pixbuf.def true $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).pdb Windows - $(OutDir)gdk_pixbuf-$(ApiVersion).lib MachineX64 @@ -325,12 +328,13 @@ $(ImagingLibs);%(AdditionalDependencies) $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).dll $(IntDir)\gdk-pixbuf.def + $(OutDir)gdk_pixbuf-$(ApiVersion).lib true $(OutDir)$(GdkPixbufDllPrefix)gdk_pixbuf$(GdkPixbufDllSuffix).pdb Windows true true - $(OutDir)gdk_pixbuf-$(ApiVersion).lib + UseLinkTimeCodeGeneration MachineX64 -- cgit v1.2.1