Fix #1059: Linking for mingw/x86_64 on MSYS2 fails
parent
9d1c396c54
commit
61c3f8a440
|
@ -11,23 +11,16 @@ def configure(env):
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
def mySubProcess(cmdline, env):
|
def mySubProcess(cmdline, env):
|
||||||
# print "SPAWNED : " + cmdline
|
# print("SPAWNED: " + cmdline)
|
||||||
startupinfo = subprocess.STARTUPINFO()
|
proc = subprocess.run(
|
||||||
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
|
args=cmdline,
|
||||||
proc = subprocess.Popen(
|
shell=True,
|
||||||
cmdline,
|
|
||||||
stdin=subprocess.PIPE,
|
|
||||||
stdout=subprocess.PIPE,
|
|
||||||
stderr=subprocess.PIPE,
|
|
||||||
startupinfo=startupinfo,
|
|
||||||
shell=False,
|
|
||||||
env=env,
|
env=env,
|
||||||
)
|
)
|
||||||
data, err = proc.communicate()
|
rv = proc.returncode
|
||||||
rv = proc.wait()
|
|
||||||
if rv:
|
if rv:
|
||||||
print("=====")
|
print("=====")
|
||||||
print(err.decode("utf-8"))
|
print(rv, "(", hex(rv), ")")
|
||||||
print("=====")
|
print("=====")
|
||||||
return rv
|
return rv
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue