1
0
mirror of https://github.com/godotengine/godot synced 2024-07-05 18:28:36 +00:00

SCons: Prevent using vsproj option outside Windows

Fixes #63305.
This commit is contained in:
Rémi Verschelde 2022-07-22 12:53:01 +02:00
parent f37990ed77
commit 4e56f96396

View File

@ -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")