Update build.py: change default cmake generator for Windows to VS2019 (#7945)

VS 2019 is well tested. VS 2017 is not. 

We should make "Visual Studio 16 2019" as the default to not confuse people.
This commit is contained in:
Changming Sun 2021-06-04 15:56:53 -07:00 committed by GitHub
parent 0975e7c9a7
commit b856e7ae3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -429,7 +429,7 @@ def parse_arguments():
parser.add_argument(
"--cmake_generator",
choices=['Visual Studio 15 2017', 'Visual Studio 16 2019', 'Ninja'],
default='Visual Studio 15 2017' if is_windows() else None,
default='Visual Studio 16 2019' if is_windows() else None,
help="Specify the generator that CMake invokes. "
"This is only supported on Windows")
parser.add_argument(