[gobject-introspection] MSVC Builds: Speed Up Release Builds



commit 1b4dfb10b6f52fbd4d93194a38e166f56255a581
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Mar 10 16:37:24 2015 +0800

    MSVC Builds: Speed Up Release Builds
    
    Use the multiprocessor compilation (/MP) flag, which can help to cut down
    release build times by quite a bit.  This will emit a brief warning for
    debug builds, due to the use of /Gm, but the build will otherwise proceed
    normally.
    
    Also use the /d2Zi+ compiler flag for Visual Studio 2010 and later so that
    more useful information can be logged to the .pdb files for release builds,
    which will help debugging release binaries.

 build/win32/vs10/gi-build-defines.props  |    2 ++
 build/win32/vs9/gi-build-defines.vsprops |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/build/win32/vs10/gi-build-defines.props b/build/win32/vs10/gi-build-defines.props
index 160b17f..56e7986 100644
--- a/build/win32/vs10/gi-build-defines.props
+++ b/build/win32/vs10/gi-build-defines.props
@@ -17,6 +17,8 @@
       
<AdditionalIncludeDirectories>..\..\..;..\..\..\girepository;$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\lib\glib-2.0\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <PreprocessorDefinitions>HAVE_CONFIG_H;WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ForcedIncludeFiles>msvc_recommended_pragmas.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
+      <MultiProcessorCompilation>true</MultiProcessorCompilation>
+      <AdditionalOptions>/d2Zi+ %(AdditionalOptions)</AdditionalOptions>
     </ClCompile>
     <Link>
       
<AdditionalDependencies>gio-2.0.lib;gobject-2.0.lib;gmodule-2.0.lib;gthread-2.0.lib;glib-2.0.lib;%(AdditionalDependencies)</AdditionalDependencies>
diff --git a/build/win32/vs9/gi-build-defines.vsprops b/build/win32/vs9/gi-build-defines.vsprops
index 12cd0cf..fc497d1 100644
--- a/build/win32/vs9/gi-build-defines.vsprops
+++ b/build/win32/vs9/gi-build-defines.vsprops
@@ -12,6 +12,7 @@
                
AdditionalIncludeDirectories="..\..\..;..\..\..\girepository;$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\lib\glib-2.0\include"
                PreprocessorDefinitions="HAVE_CONFIG_H;WIN32"
                ForcedIncludeFiles="msvc_recommended_pragmas.h"
+               AdditionalOptions="/MP"
        />
        <Tool
                Name="VCLinkerTool"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]