diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2009-11-26 21:13:37 (GMT) |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2009-11-26 21:13:37 (GMT) |
commit | a9d72478d54104b979f5e92ca0fab0ff07b37fe1 (patch) | |
tree | c7bbb64718465a853a3acafbd5897207545c4497 /src/engine/SCons/Tool/MSCommon/vc.py | |
parent | 772a5431b048a8d36860b32f6a1330f90ee11f19 (diff) | |
download | SCons-a9d72478d54104b979f5e92ca0fab0ff07b37fe1.zip SCons-a9d72478d54104b979f5e92ca0fab0ff07b37fe1.tar.gz SCons-a9d72478d54104b979f5e92ca0fab0ff07b37fe1.tar.bz2 |
Use VisualCMissingWarning instead of making a stack trace for unsupported MSVC version.
Diffstat (limited to 'src/engine/SCons/Tool/MSCommon/vc.py')
-rw-r--r-- | src/engine/SCons/Tool/MSCommon/vc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py index 4748a33..dfedbde 100644 --- a/src/engine/SCons/Tool/MSCommon/vc.py +++ b/src/engine/SCons/Tool/MSCommon/vc.py @@ -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: |