diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-22 17:44:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 17:44:45 +0200 |
commit | 79463aa5defb083569d193658a62755223f14dc4 (patch) | |
tree | 70d6458d8581087e134f7ced123ae458f8c095e1 /SConstruct | |
parent | ed2a741eb1bef00fade091fbdac64dbccb4d8264 (diff) | |
parent | 4e56f96396cceb9f32674b6ca57a2777c8b5521c (diff) |
Merge pull request #63310 from akien-mga/scons-vsproj-windows
SCons: Prevent using `vsproj` option outside Windows
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index f765a26c44..0fd9326e1c 100644 --- a/SConstruct +++ b/SConstruct @@ -854,6 +854,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") |