From 399989085fecd58de48b72f7cd48880b74b59aa6 Mon Sep 17 00:00:00 2001 From: cournape Date: Thu, 19 Nov 2009 05:08:16 +0000 Subject: [PATCH] BUG: fix MSVC_USE_SCRIPT=False case. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4458 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Tool/MSCommon/vc.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py index 130acf5d..1cd236dc 100644 --- a/src/engine/SCons/Tool/MSCommon/vc.py +++ b/src/engine/SCons/Tool/MSCommon/vc.py @@ -286,8 +286,11 @@ def msvc_setup_env(env): (script, arg, str(e)) raise SCons.Errors.UserError(msg) else: - debug('msvc.get_default_env()\n') - d = msvc.get_default_env() + debug('MSVC_USE_SCRIPT set to False') + warn_msg = "MSVC_USE_SCRIPT set to False, assuming environment " \ + "set correctly." + SCons.Warnings.warn(SCons.Warnings.VisualCMissingWarning, warn_msg) + return None for k, v in d.items(): env.PrependENVPath(k, v, delete_existing=True) -- 2.26.2