Browse Source

Merge pull request #80547 from DarioSamo/windows-subsystem-console

SCons: Carry over the `windows_subsystem` setting to the generated vsproj
Rémi Verschelde 2 years ago
parent
commit
122f3730ca
1 changed files with 3 additions and 0 deletions
  1. 3 0
      methods.py

+ 3 - 0
methods.py

@@ -868,6 +868,9 @@ def generate_vs_project(env, num_jobs, project_name="godot"):
                 if env["custom_modules"]:
                 if env["custom_modules"]:
                     common_build_postfix.append("custom_modules=%s" % env["custom_modules"])
                     common_build_postfix.append("custom_modules=%s" % env["custom_modules"])
 
 
+                if env["windows_subsystem"] == "console":
+                    common_build_postfix.append("windows_subsystem=console")
+
                 if env["precision"] == "double":
                 if env["precision"] == "double":
                     common_build_postfix.append("precision=double")
                     common_build_postfix.append("precision=double")