Skip to content
Snippets Groups Projects
Commit 0f7d9ec3 authored by Anders Carlsson's avatar Anders Carlsson
Browse files

Make CCC_ECHO output to stderr

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62452 91177308-0d34-0410-b5e6-96231b3b80d8
parent 3a874a40
No related branches found
No related tags found
No related merge requests found
...@@ -191,8 +191,8 @@ class Driver(object): ...@@ -191,8 +191,8 @@ class Driver(object):
for j in jobs.iterjobs(): for j in jobs.iterjobs():
if isinstance(j, Jobs.Command): if isinstance(j, Jobs.Command):
if self.cccEcho: if self.cccEcho:
print ' '.join(map(repr,j.getArgv())) print >>sys.stderr, ' '.join(map(repr,j.getArgv()))
sys.stdout.flush() sys.stderr.flush()
res = os.spawnvp(os.P_WAIT, j.executable, j.getArgv()) res = os.spawnvp(os.P_WAIT, j.executable, j.getArgv())
if res: if res:
sys.exit(res) sys.exit(res)
...@@ -201,7 +201,7 @@ class Driver(object): ...@@ -201,7 +201,7 @@ class Driver(object):
procs = [] procs = []
for sj in j.commands: for sj in j.commands:
if self.cccEcho: if self.cccEcho:
print ' '.join(map(repr,sj.getArgv())) print >> sys.stderr, ' '.join(map(repr,sj.getArgv()))
sys.stdout.flush() sys.stdout.flush()
if not procs: if not procs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment