summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-02-17 00:41:19 +0000
committer[email protected] <[email protected]>2012-02-17 00:41:19 +0000
commitcc2ce9fa40db953350393a2144cb27044087498e (patch)
treef6941e122087d34b8d9e6fd28b0b35a5beb00fb4 /tools
parent7114014429e6c097cb01e740f401ce2a1da738ca (diff)
fix print out warning information when use GCC as compiler.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1952 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'tools')
-rw-r--r--tools/building.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/building.py b/tools/building.py
index c06159be37..0ed887e6a8 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -435,13 +435,14 @@ class Win32Spawn:
newargs = string.join(args[1:], ' ')
cmdline = cmd + " " + newargs
startupinfo = subprocess.STARTUPINFO()
- # startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
+ startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
proc = subprocess.Popen(cmdline, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, startupinfo=startupinfo, shell = False)
data, err = proc.communicate()
rv = proc.wait()
- if rv:
+ if err:
print err
+ if rv:
return rv
if data: