Commits

Anonymous committed a1362bb

fix for visual studio expres on win7 x86_64
(transplanted from d7e892b4978439c6374d090912f13afa13e8daf8)

  • Participants
  • Parent commits 4c1ba6f

Comments (0)

Files changed (1)

File src/engine/SCons/Tool/MSCommon/vc.py

     
     installed_sdks=get_installed_sdks()
     for _sdk in installed_sdks:
-        sdk_bat_file=_sdk.get_sdk_vc_script(host_arch,target_arch)
-        sdk_bat_file_path=os.path.join(pdir,sdk_bat_file)
-        debug('vc.py:find_batch_file() sdk_bat_file_path:%s'%sdk_bat_file_path)
-        if os.path.exists(sdk_bat_file_path):
+        sdk_bat_file = _sdk.get_sdk_vc_script(host_arch,target_arch)
+        if sdk_bat_file and os.path.join(pdir,sdk_bat_file):
+            sdk_bat_file_path = os.path.join(pdir,sdk_bat_file)
+            debug('vc.py:find_batch_file() sdk_bat_file_path:%s'%sdk_bat_file_path)
+
             return (batfilename,sdk_bat_file_path)
         else:
-            debug("vc.py:find_batch_file() not found:%s"%sdk_bat_file_path)
+            debug("vc.py:find_batch_file() not found:%s"%_sdk)
     else:
         return (batfilename,None)