not assuming that %PROCESSOR_ARCHITECTURE% will be defined, and not
assuming that we'll find any installed Windows SDKs.
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4297
fdb21ef1-2011-0410-befe-
b5e4ea1792b1
if arch is None:
arch = os.environ.get('PROCESSOR_ARCHITEW6432')
if not arch:
- arch = os.environ['PROCESSOR_ARCHITECTURE']
- return SupportedArchitectureMap.get(arch, '')
+ arch = os.environ.get('PROCESSOR_ARCHITECTURE')
+ return SupportedArchitectureMap.get(arch, ArchDefinition('', ['']))
def generate(env):
# Attempt to find cmd.exe (for WinNT/2k/XP) or
def get_default_sdk():
"""Set up the default Platform/Windows SDK."""
get_installed_sdks()
+ if not InstalledSDKList:
+ return None
return InstalledSDKList[0]
def mssdk_setup_env(env):