diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2015-03-10 16:37:24 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2015-03-10 16:37:24 +0800 |
commit | 1b4dfb10b6f52fbd4d93194a38e166f56255a581 (patch) | |
tree | 90e683838874e48d1fd4416df56b701c27f8c8d1 | |
parent | 733a444109d7b4b0e64b61c4b7f6aa320e099f25 (diff) | |
download | gobject-introspection-1b4dfb10b6f52fbd4d93194a38e166f56255a581.tar.gz |
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.
-rw-r--r-- | build/win32/vs10/gi-build-defines.props | 2 | ||||
-rw-r--r-- | 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 160b17ff..56e79863 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 12cd0cf3..fc497d18 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" |