summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-11-19 05:07:41 (GMT)
committerDavid Cournapeau <cournape@gmail.com>2009-11-19 05:07:41 (GMT)
commit917693d962720cce08ac733bd568b0900593704f (patch)
treef1c67f5cf4f9725a0481f297a8c3d0901ccd9d51
parentc8ef6a4aaad99efea81b79dc36fc66ab7ac7bd83 (diff)
downloadSCons-917693d962720cce08ac733bd568b0900593704f.zip
SCons-917693d962720cce08ac733bd568b0900593704f.tar.gz
SCons-917693d962720cce08ac733bd568b0900593704f.tar.bz2
BUG: return early with warning if no version of vc is found.
-rw-r--r--src/engine/SCons/Tool/MSCommon/vc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py
index 6415783..130acf5 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))