[atk] MSVC Builds: Speed Up Release Builds
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atk] MSVC Builds: Speed Up Release Builds
- Date: Thu, 5 Mar 2015 09:46:14 +0000 (UTC)
commit 4126ce605881bd8116756ddf99d12cddaf7c1aa5
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Mar 5 17:40:58 2015 +0800
MSVC Builds: Speed Up Release Builds
Use the multi-processor compilation option for the compiler, which can cut
down build times of release builds by quite a bit. This would emit a brief
warning for debug builds as they use /Gm, but otherwise the build would
continue normally.
build/win32/vs10/atk-build-defines.props | 1 +
build/win32/vs9/atk-build-defines.vsprops | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/build/win32/vs10/atk-build-defines.props b/build/win32/vs10/atk-build-defines.props
index a0bec90..ff3ab78 100644
--- a/build/win32/vs10/atk-build-defines.props
+++ b/build/win32/vs10/atk-build-defines.props
@@ -16,6 +16,7 @@
<AdditionalIncludeDirectories>..\..\..;..\..\..\atk;$(GLibEtcInstallRoot)\include;$(GLibEtcInstallRoot)\include\glib-2.0;$(GLibEtcInstallRoot)\lib\glib-2.0\include\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>HAVE_CONFIG_H;G_DISABLE_SINGLE_INCLUDES;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ForcedIncludeFiles>msvc_recommended_pragmas.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
+ <MultiProcessorCompilation>true</MultiProcessorCompilation>
</ClCompile>
<Link>
<AdditionalDependencies>glib-2.0.lib;gobject-2.0.lib;gmodule-2.0.lib;intl.lib;%(AdditionalDependencies)</AdditionalDependencies>
diff --git a/build/win32/vs9/atk-build-defines.vsprops b/build/win32/vs9/atk-build-defines.vsprops
index 351d19e..76665ce 100644
--- a/build/win32/vs9/atk-build-defines.vsprops
+++ b/build/win32/vs9/atk-build-defines.vsprops
@@ -12,6 +12,7 @@
AdditionalIncludeDirectories="..\..\..;..\..\..\atk;$(GLibEtcInstallRoot)\include;$(GLibEtcInstallRoot)\include\glib-2.0;$(GLibEtcInstallRoot)\lib\glib-2.0\include\"
PreprocessorDefinitions="HAVE_CONFIG_H;G_DISABLE_SINGLE_INCLUDES"
ForcedIncludeFiles="msvc_recommended_pragmas.h"
+ AdditionalOptions="/MP"
/>
<Tool
Name="VCLinkerTool"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]