summaryrefslogtreecommitdiffstats
path: root/build/SConscript.main
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 15:02:06 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 15:02:06 +0000
commitc6bb626853c7ec3b61147c50df7613b7919dc937 (patch)
treeba50eb2d2dd6402aaa694dae357b3056243673b8 /build/SConscript.main
parent01d23775f0fe53e36b58aa03101104dcb35a23a5 (diff)
downloadchromium_src-c6bb626853c7ec3b61147c50df7613b7919dc937.zip
chromium_src-c6bb626853c7ec3b61147c50df7613b7919dc937.tar.gz
chromium_src-c6bb626853c7ec3b61147c50df7613b7919dc937.tar.bz2
Force SCons to use the VC8 toolchain. (Take 2)
In the presence of an installed copy of the 6.1 SDK, SCons would pick up on the presence of the VC9 toolchain which tags along with it. It would proceed to populate the environment with a mismatched set of paths referring to VC9 includes and libs, which in turn would cause the chrome base build to terminate with a LNK1103 error complaining of corrupt symbols. Patch contributed by Siggi @ Google. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8713 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/SConscript.main')
-rw-r--r--build/SConscript.main5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/SConscript.main b/build/SConscript.main
index 15865ce..44c926f 100644
--- a/build/SConscript.main
+++ b/build/SConscript.main
@@ -232,6 +232,11 @@ root_env.Append(BUILD_SCONSCRIPTS = sconscripts)
windows_env = root_env.Clone()
+# TODO(siggi) Remove this code once SCons plays well when the
+# Platform SDK 6.1 is installed with VS2005 but not VS2008.
+if root_env['PLATFORM'] in ['win32', 'cygwin']:
+ windows_env['MSVS_VERSION'] = '8.0'
+
windows_env.Tool('target_platform_windows')
windows_env.Tool('component_targets_msvs') # Per target project support.