From 83a00d17ea711c71b8c0e6e9e5cba4712fd4946d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 22 Jul 2022 12:53:01 +0200 Subject: [PATCH] SCons: Prevent using `vsproj` option outside Windows Fixes #63305. (cherry picked from commit 4e56f96396cceb9f32674b6ca57a2777c8b5521c) --- SConstruct | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SConstruct b/SConstruct index 69865807ab8..2a5c8d5464b 100644 --- a/SConstruct +++ b/SConstruct @@ -720,6 +720,9 @@ if selected_platform in platform_list: # Microsoft Visual Studio Project Generation if env["vsproj"]: + if os.name != "nt": + print("Error: The `vsproj` option is only usable on Windows with Visual Studio.") + Exit(255) env["CPPPATH"] = [Dir(path) for path in env["CPPPATH"]] methods.generate_vs_project(env, GetOption("num_jobs")) methods.generate_cpp_hint_file("cpp.hint")