Browse Source

[Windows] Add main executable to the console wrapper dependencies to prevent simultaneous linking.

bruvzg 2 years ago
parent
commit
f37ace7036
1 changed files with 1 additions and 0 deletions
  1. 1 0
      platform/windows/SCsub

+ 1 - 0
platform/windows/SCsub

@@ -44,6 +44,7 @@ if env["windows_subsystem"] == "gui":
         env_wrap.Append(LIBS=["version"])
         env_wrap.Append(LIBS=["version"])
 
 
     prog_wrap = env_wrap.add_program("#bin/godot", common_win_wrap + res_wrap_obj, PROGSUFFIX=env["PROGSUFFIX_WRAP"])
     prog_wrap = env_wrap.add_program("#bin/godot", common_win_wrap + res_wrap_obj, PROGSUFFIX=env["PROGSUFFIX_WRAP"])
+    env_wrap.Depends(prog_wrap, prog)
 
 
 # Microsoft Visual Studio Project Generation
 # Microsoft Visual Studio Project Generation
 if env["vsproj"]:
 if env["vsproj"]: