Merge pull request #1730 from shoover/msvc-lazy

Enable lazy Visual Studio detection by default: one missed spot.
This commit is contained in:
ita1024 2016-04-15 22:50:57 +02:00
commit 2be642017f
1 changed files with 3 additions and 1 deletions

View File

@ -653,7 +653,9 @@ def print_all_msvc_detected(conf):
@conf
def detect_msvc(conf, arch = False):
# Save installed versions only if lazy detection is disabled.
lazy_detect = getattr(Options.options, 'msvc_lazy_autodetect', False) or conf.env['MSVC_LAZY_AUTODETECT']
lazy_detect = getattr(Options.options, 'msvc_lazy', True)
if conf.env['MSVC_LAZY_AUTODETECT'] is False:
lazy_detect = False
versions = get_msvc_versions(conf, not lazy_detect)
return setup_msvc(conf, versions, arch)