2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-29 13:30:32 +01:00

Merge branch 'add-msvc-default' into 'master'

default to version of visual studio from command prompt if it exists

See merge request ita1024/waf!2299
This commit is contained in:
ita1024 2020-08-19 21:39:07 +00:00
commit 794e3672ed

View File

@ -99,7 +99,7 @@ all_icl_platforms = [ ('intel64', 'amd64'), ('em64t', 'amd64'), ('ia32', 'x86'),
"""List of icl platforms"""
def options(opt):
opt.add_option('--msvc_version', type='string', help = 'msvc version, eg: "msvc 10.0,msvc 9.0"', default='')
opt.add_option('--msvc_version', type='string', help = 'msvc version, eg: "msvc 10.0,msvc 9.0"', default="msvc " + re.match("(^\d+\.\d+).*", os.getenv("VSCMD_VER"))[1] if os.getenv("VSCMD_VER") else "")
opt.add_option('--msvc_targets', type='string', help = 'msvc targets, eg: "x64,arm"', default='')
opt.add_option('--no-msvc-lazy', action='store_false', help = 'lazily check msvc target environments', default=True, dest='msvc_lazy')