diff options
| author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2015-03-06 16:11:44 +0800 |
|---|---|---|
| committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2015-03-06 16:15:53 +0800 |
| commit | c642f6644f82b555b348d3c364efd9961155528d (patch) | |
| tree | 8ec6a091e37e23944b404ac793801d6472dce681 | |
| parent | 80e44db76dd179e4c12d1a11b24f27c7548dc382 (diff) | |
| download | json-glib-c642f6644f82b555b348d3c364efd9961155528d.tar.gz | |
MSVC Builds: Speed Up Release Builds
Use the multiprocessor compilation (/MP) option, which can cut down release
build times by quite a bit. This will emit a brief warning on debug
builds, but otherwise the build will proceed as normal.
Also use the /d2Zi+ option for MSVC 2010 (and later) builds so that more
useful information can be logged to the .pdb files for the release builds.
| -rw-r--r-- | build/win32/vs10/json-glib-build-defines.props | 2 | ||||
| -rw-r--r-- | build/win32/vs9/json-glib-build-defines.vsprops | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/build/win32/vs10/json-glib-build-defines.props b/build/win32/vs10/json-glib-build-defines.props index fc92a8b..b6267cc 100644 --- a/build/win32/vs10/json-glib-build-defines.props +++ b/build/win32/vs10/json-glib-build-defines.props @@ -16,6 +16,8 @@ <AdditionalIncludeDirectories>..\..\..;..\..\..\json-glib;$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\lib\glib-2.0\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ForcedIncludeFiles>msvc_recommended_pragmas.h;%(ForcedIncludeFiles)</ForcedIncludeFiles> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + <AdditionalOptions>/d2Zi+ %(AdditionalOptions)</AdditionalOptions> </ClCompile> <Link> <AdditionalDependencies>glib-2.0.lib;gobject-2.0.lib;gio-2.0.lib;%(AdditionalDependencies)</AdditionalDependencies> diff --git a/build/win32/vs9/json-glib-build-defines.vsprops b/build/win32/vs9/json-glib-build-defines.vsprops index 3d2dbc0..33c9afb 100644 --- a/build/win32/vs9/json-glib-build-defines.vsprops +++ b/build/win32/vs9/json-glib-build-defines.vsprops @@ -12,6 +12,7 @@ AdditionalIncludeDirectories="..\..\..;..\..\..\json-glib;$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\lib\glib-2.0\include" PreprocessorDefinitions="HAVE_CONFIG_H" ForcedIncludeFiles="msvc_recommended_pragmas.h" + AdditionalOptions="/MP" /> <Tool Name="VCLinkerTool" |
