2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

wscript: workaround bug when CC_VERSION is not set for msvc

This commit is contained in:
Alibek Omarov 2019-11-07 04:49:49 +03:00
parent 62cdf2ae5b
commit 7e4a7ac23d

View File

@ -117,6 +117,11 @@ def configure(conf):
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')
try:
conf.env.CC_VERSION[0]
except IndexError:
conf.env.CC_VERSION = (0,)
# modify options dictionary early
if conf.env.DEST_OS == 'android':
conf.options.NO_VGUI= True # skip vgui