Enable lazy Visual Studio detection by default: one missed spot.

This commit is contained in:
Shawn Hoover 2016-04-15 13:41:53 -04:00
parent 6aaae99afe
commit ac3a332b03
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)