diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-07-22 12:53:01 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-07-22 12:53:14 +0200 |
commit | 4e56f96396cceb9f32674b6ca57a2777c8b5521c (patch) | |
tree | a7958a68a191afac4b2d47286e1f9fb8cb8df3f1 /SConstruct | |
parent | f37990ed77d6cf0c2b368576afe21dc574afe49f (diff) |
SCons: Prevent using `vsproj` option outside Windows
Fixes #63305.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 74f9d1158c..4e0f95a6c2 100644 --- a/SConstruct +++ b/SConstruct @@ -834,6 +834,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") |