提交 4cc052e1 编写于 作者: B bernard.xiong@gmail.com

fix GNU GCC path issue in building script.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1953 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 cc2ce9fa
......@@ -436,17 +436,21 @@ class Win32Spawn:
cmdline = cmd + " " + newargs
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
penv = {}
for key, value in env.iteritems():
penv[key] = str(value)
proc = subprocess.Popen(cmdline, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, startupinfo=startupinfo, shell = False)
stderr=subprocess.PIPE, startupinfo=startupinfo, shell = False, env=penv)
data, err = proc.communicate()
rv = proc.wait()
if data:
print data
if err:
print err
if rv:
return rv
if data:
print data
return 0
def PrepareBuilding(env, root_directory, has_libcpu=False):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册