From: bdbaddog Date: Mon, 15 Mar 2010 01:42:02 +0000 (+0000) Subject: Add more debug output to Visual Studio/VC/ SDK initialization X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4b51c16a7571f263d3423a6a93811ea4252c37ab;p=scons.git Add more debug output to Visual Studio/VC/ SDK initialization git-svn-id: http://scons.tigris.org/svn/scons/trunk@4702 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Tool/MSCommon/sdk.py b/src/engine/SCons/Tool/MSCommon/sdk.py index f02a3191..ccc8db0f 100644 --- a/src/engine/SCons/Tool/MSCommon/sdk.py +++ b/src/engine/SCons/Tool/MSCommon/sdk.py @@ -76,6 +76,7 @@ class SDKDefinition: return None hkey = self.HKEY_FMT % self.hkey_data + debug('find_sdk_dir(): checking registry:%s'%hkey) try: sdk_dir = common.read_reg(hkey) @@ -83,6 +84,8 @@ class SDKDefinition: debug('find_sdk_dir(): no SDK registry key %s' % repr(hkey)) return None + debug('find_sdk_dir(): Trying SDK Dir: %s'%sdk_dir) + if not os.path.exists(sdk_dir): debug('find_sdk_dir(): %s not on file system' % sdk_dir) return None diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py index 28e0d1e1..892bb805 100644 --- a/src/engine/SCons/Tool/MSCommon/vc.py +++ b/src/engine/SCons/Tool/MSCommon/vc.py @@ -285,6 +285,8 @@ def get_default_version(env): msvc_version = env.get('MSVC_VERSION') msvs_version = env.get('MSVS_VERSION') + + debug('get_default_version(): msvc_version:%s msvs_version:%s'%(msvc_version,msvs_version)) if msvs_version and not msvc_version: SCons.Warnings.warn(