Skip to content

Commit

Permalink
Fix godotengine#1059: Linking for mingw/x86_64 on MSYS2 fails
Browse files Browse the repository at this point in the history
  • Loading branch information
feiyunw committed Mar 31, 2023
1 parent 4d3afc0 commit ff03c68
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions tools/my_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,16 @@ def configure(env):
import subprocess

def mySubProcess(cmdline, env):
# print "SPAWNED : " + cmdline
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
proc = subprocess.Popen(
cmdline,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
startupinfo=startupinfo,
shell=False,
# print("SPAWNED: " + cmdline)
proc = subprocess.run(
args=cmdline,
shell=True,
env=env,
)
data, err = proc.communicate()
rv = proc.wait()
rv = proc.returncode
if rv:
print("=====")
print(err.decode("utf-8"))
print(rv, "(", hex(rv), ")")
print("=====")
return rv

Expand Down

0 comments on commit ff03c68

Please sign in to comment.