Browse Source

wscript: workaround bug when CC_VERSION is not set for msvc

pull/2/head
Alibek Omarov 5 years ago
parent
commit
7e4a7ac23d
  1. 5
      wscript

5
wscript

@ -117,6 +117,11 @@ def configure(conf):
conf.load('msvc msvc_pdb msdev msvs') conf.load('msvc msvc_pdb msdev msvs')
conf.load('subproject xcompile compiler_c compiler_cxx gitversion clang_compilation_database strip_on_install waf_unit_test') conf.load('subproject xcompile compiler_c compiler_cxx gitversion clang_compilation_database strip_on_install waf_unit_test')
try:
conf.env.CC_VERSION[0]
except IndexError:
conf.env.CC_VERSION = (0,)
# modify options dictionary early # modify options dictionary early
if conf.env.DEST_OS == 'android': if conf.env.DEST_OS == 'android':
conf.options.NO_VGUI= True # skip vgui conf.options.NO_VGUI= True # skip vgui

Loading…
Cancel
Save