mirror of
https://github.com/Relintai/scons_gd.git
synced 2025-03-26 19:32:22 +01:00
15 lines
452 B
Python
15 lines
452 B
Python
import SCons
|
|
import SCons.Tool.MSCommon
|
|
|
|
def DummyVsWhere(msvc_version, env):
|
|
# not testing versions with vswhere, so return none
|
|
return None
|
|
|
|
for key in SCons.Tool.MSCommon.vc._VCVER_TO_PRODUCT_DIR:
|
|
SCons.Tool.MSCommon.vc._VCVER_TO_PRODUCT_DIR[key]=[(SCons.Util.HKEY_LOCAL_MACHINE, r'')]
|
|
|
|
SCons.Tool.MSCommon.vc.find_vc_pdir_vswhere = DummyVsWhere
|
|
|
|
env = SCons.Environment.Environment()
|
|
|
|
print('MSVC_VERSION='+str(env.get('MSVC_VERSION'))) |