Make CCC_ECHO output to stderr

llvm-svn: 62452
This commit is contained in:
Anders Carlsson 2009-01-18 02:54:17 +00:00
parent 428613f4fc
commit d0e93db5ce
1 changed files with 3 additions and 3 deletions

View File

@ -191,8 +191,8 @@ class Driver(object):
for j in jobs.iterjobs():
if isinstance(j, Jobs.Command):
if self.cccEcho:
print ' '.join(map(repr,j.getArgv()))
sys.stdout.flush()
print >>sys.stderr, ' '.join(map(repr,j.getArgv()))
sys.stderr.flush()
res = os.spawnvp(os.P_WAIT, j.executable, j.getArgv())
if res:
sys.exit(res)
@ -201,7 +201,7 @@ class Driver(object):
procs = []
for sj in j.commands:
if self.cccEcho:
print ' '.join(map(repr,sj.getArgv()))
print >> sys.stderr, ' '.join(map(repr,sj.getArgv()))
sys.stdout.flush()
if not procs: