Use VisualCMissingWarning instead of making a stack trace for unsupported MSVC version.
authorgaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 26 Nov 2009 21:13:37 +0000 (21:13 +0000)
committergaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 26 Nov 2009 21:13:37 +0000 (21:13 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4486 fdb21ef1-2011-0410-befe-b5e4ea1792b1

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

index 4748a33316e4e8a869d8ae58ec0a8675e66db4ee..dfedbdee71da4fd1a6fae24c3190c8ddb11a9920 100644 (file)
@@ -331,9 +331,9 @@ def msvc_setup_env(env):
         host_platform, target_platform = get_host_target(env)
         host_target = (host_platform, target_platform)
         if not is_host_target_supported(host_target, version):
-            raise UnsupportedVersion(
-                    "host, target = %s not supported for MSVC version %s" %
-                    (host_target, version))
+            msg = "host, target = %s not supported for MSVC version %s" % \
+                    (host_target, version)
+            SCons.Warnings.warn(SCons.Warnings.VisualCMissingWarning, warn_msg)
         arg = _HOST_TARGET_ARCH_TO_BAT_ARCH[host_target]
         debug('use_script 2 %s, args:%s\n' % (repr(script), arg))
         try: