diff options
author | bradnelson@chromium.org <bradnelson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-31 23:33:55 +0000 |
---|---|---|
committer | bradnelson@chromium.org <bradnelson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-31 23:33:55 +0000 |
commit | 912c55c3595d92a518d9002ba6a73b9cf6ec34f0 (patch) | |
tree | 9f10fa44b98a7a1aa55c10a961e77abd242cf3a4 /build/common.gypi | |
parent | 3d1b429ed61ce2e0d997e8431a88f2b7de450c5f (diff) | |
download | chromium_src-912c55c3595d92a518d9002ba6a73b9cf6ec34f0.zip chromium_src-912c55c3595d92a518d9002ba6a73b9cf6ec34f0.tar.gz chromium_src-912c55c3595d92a518d9002ba6a73b9cf6ec34f0.tar.bz2 |
Making /MP on by default for msvs2008.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/159732
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r-- | build/common.gypi | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/build/common.gypi b/build/common.gypi index 98a2c9e..f30f3a0 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -72,10 +72,6 @@ # but that doesn't work as we'd like. 'msvs_debug_link_incremental%': '2', - # Whether to use multiple cores to compile with visual studio. This is - # optional because it sometimes causes corruption on VS 2005. - 'msvs_multi_core_compile%': '', - # The architecture that we're building on. 'target_arch%': 'ia32', @@ -106,6 +102,21 @@ # path is set here. It should be the final location of the Chromium binary # on the system. 'linux_sandbox_chrome_path%': '/opt/google/chrome/chrome', + + 'conditions': [ + # Whether to use multiple cores to compile with visual studio. This is + # optional because it sometimes causes corruption on VS 2005. + # It is on by default on VS 2008 and off on VS 2005. + ['OS=="win"', { + 'conditions': [ + ['MSVS_VERSION=="2005"', { + 'msvs_multi_core_compile%': 0, + },{ + 'msvs_multi_core_compile%': 1, + }], + ], + }], + ], }, 'target_defaults': { 'conditions': [ @@ -527,8 +538,9 @@ 'WarnAsError': 'true', 'DebugInformationFormat': '3', 'conditions': [ - [ 'msvs_multi_core_compile', - {'AdditionalOptions': '/MP'}, ], + [ 'msvs_multi_core_compile', { + 'AdditionalOptions': '/MP', + }], ], }, 'VCLibrarianTool': { |