From 0c109c4411e8ccd047b4a128a987223d5bf9a5c3 Mon Sep 17 00:00:00 2001 From: Sankhesh Jhaveri Date: Wed, 27 Sep 2023 13:09:44 -0400 Subject: [PATCH] msvc: Allow building with Visual Studio Preview versions --- build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index f4a95deee8..2b50993949 100755 --- a/build.py +++ b/build.py @@ -126,7 +126,8 @@ def FindLatestMSVC( quiet ): if not quiet: print( "Calling vswhere -latest -installationVersion" ) latest_full_v = subprocess.check_output( - [ VSWHERE_EXE, '-latest', '-property', 'installationVersion' ] + [ VSWHERE_EXE, '-latest', '-prerelease', '-property', + 'installationVersion' ] ).strip().decode() if '.' in latest_full_v: try: