From 66cbc7150e5d544c999c3611b181a3a5bdb4bae2 Mon Sep 17 00:00:00 2001 From: cournape Date: Thu, 19 Nov 2009 05:07:41 +0000 Subject: [PATCH] BUG: return early with warning if no version of vc is found. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4457 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Tool/MSCommon/vc.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py index 64157835..130acf5d 100644 --- a/src/engine/SCons/Tool/MSCommon/vc.py +++ b/src/engine/SCons/Tool/MSCommon/vc.py @@ -245,6 +245,12 @@ def msvc_setup_env(env): debug('msvc_setup_env()') version = get_default_version(env) + if version is None: + warn_msg = "No version of Visual Studio compiler found - C/C++ " \ + "compilers most likely not set correctly" + SCons.Warnings.warn(SCons.Warnings.VisualCMissingWarning, warn_msg) + return None + host_platform, target_platform = get_host_target(env) debug('msvc_setup_env: using specified MSVC version %s\n' % repr(version)) -- 2.26.2