From 4b51c16a7571f263d3423a6a93811ea4252c37ab Mon Sep 17 00:00:00 2001 From: bdbaddog Date: Mon, 15 Mar 2010 01:42:02 +0000 Subject: [PATCH] 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 --- src/engine/SCons/Tool/MSCommon/sdk.py | 3 +++ src/engine/SCons/Tool/MSCommon/vc.py | 2 ++ 2 files changed, 5 insertions(+) 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( -- 2.26.2