Add Preview to list of possible MSVC versions.

Needed to test a Preview version of MSVC and adding it to the list here
makes it a bit easier and the list more complete.

Change-Id: I419636722303816f0cd961408229fcef0773e8e0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/286496
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
This commit is contained in:
Ben Wagner 2020-04-30 14:12:00 -04:00 committed by Skia Commit-Bot
parent f38b711222
commit 666622968c

View File

@ -15,7 +15,7 @@ def find_msvc():
if sys.platform.startswith('win'):
default_dir = r'C:\Program Files (x86)\Microsoft Visual Studio'
for release in ['2019', '2017']:
for version in ['Enterprise', 'Professional', 'Community', 'BuildTools']:
for version in ['Enterprise', 'Professional', 'Community', 'BuildTools', 'Preview']:
path = os.path.join(default_dir, release, version, 'VC')
if os.path.isdir(path):
return path