From 40bfa967eb32f355867d5cc19dfc0547189a2ace Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Sun, 24 Apr 2022 09:56:50 +0200 Subject: [PATCH] Fix build when only msvc2019 is installed --- Tools/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/build.py b/Tools/build.py index d87707d6..1f665820 100755 --- a/Tools/build.py +++ b/Tools/build.py @@ -23,7 +23,7 @@ def get_vs_env_dict(): # Prefer newer MSVC and override if exists if Path(msvc_2022_path).exists(): vcvars = msvc_2022_path - else: + if not vcvars: raise RuntimeError("No Visual Studio installation found, only 2019 and 2022 are supported.") print(f"\n\nLoading MSVC env variables via {vcvars}\n\n")