Fix check for too-old Visual Studio with non-x86 arch; thanks to Roberto De Vecchi.
authorgaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Tue, 24 Nov 2009 02:05:34 +0000 (02:05 +0000)
committergaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Tue, 24 Nov 2009 02:05:34 +0000 (02:05 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4475 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Tool/MSCommon/vc.py

index b709238717bb2da234cdfc75cfa354b4fb58acf8..bfb54f6c858d5914832452ca72d0b65b6d9752b7 100644 (file)
@@ -151,7 +151,7 @@ def is_host_target_supported(host_target, msvc_version):
     target), not that the toolchain is actually present on the machine.
     """
     # We assume that any Visual Studio version supports x86 as a target
-    if host_target != "x86":
+    if host_target[1] != "x86":
         maj, min = msvc_version_to_maj_min(msvc_version)
         if maj < 8:
             return False