SCons: Prevent using vsproj
option outside Windows
Fixes #63305.
(cherry picked from commit 4e56f96396
)
This commit is contained in:
parent
967755980f
commit
83a00d17ea
1 changed files with 3 additions and 0 deletions
|
@ -720,6 +720,9 @@ if selected_platform in platform_list:
|
||||||
|
|
||||||
# Microsoft Visual Studio Project Generation
|
# Microsoft Visual Studio Project Generation
|
||||||
if env["vsproj"]:
|
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"]]
|
env["CPPPATH"] = [Dir(path) for path in env["CPPPATH"]]
|
||||||
methods.generate_vs_project(env, GetOption("num_jobs"))
|
methods.generate_vs_project(env, GetOption("num_jobs"))
|
||||||
methods.generate_cpp_hint_file("cpp.hint")
|
methods.generate_cpp_hint_file("cpp.hint")
|
||||||
|
|
Loading…
Reference in a new issue