ccc: Print -### output on stderr to match gcc.
llvm-svn: 62052
This commit is contained in:
parent
431acd1129
commit
10d5adf031
|
|
@ -144,11 +144,11 @@ class Driver(object):
|
|||
self.claim(hasHashHashHash)
|
||||
for j in jobs.iterjobs():
|
||||
if isinstance(j, Jobs.Command):
|
||||
print '"%s"' % '" "'.join(j.getArgv())
|
||||
print >>sys.stderr, '"%s"' % '" "'.join(j.getArgv())
|
||||
elif isinstance(j, Jobs.PipedJob):
|
||||
for c in j.commands:
|
||||
print '"%s" %c' % ('" "'.join(c.getArgv()),
|
||||
"| "[c is j.commands[-1]])
|
||||
print >>sys.stderr, '"%s" %c' % ('" "'.join(c.getArgv()),
|
||||
"| "[c is j.commands[-1]])
|
||||
elif not isinstance(j, JobList):
|
||||
raise ValueError,'Encountered unknown job.'
|
||||
sys.exit(0)
|
||||
|
|
@ -308,6 +308,10 @@ class Driver(object):
|
|||
# that other code which needs to know the inputs
|
||||
# handles this properly. Best not to try and lipo
|
||||
# this, for example.
|
||||
#
|
||||
# FIXME: Actually, this is just flat out broken, the
|
||||
# tools expect inputs to be accessible by .getValue
|
||||
# but that of course only yields the argument.
|
||||
inputs.append((Types.ObjectType, a))
|
||||
elif a.opt is self.parser.xOption:
|
||||
self.claim(a)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: xcc -### -fsyntax-only -Xarch_i386 -Wall -Xarch_ppc -Wunused -arch i386 -arch ppc %s > %t &&
|
||||
// RUN: xcc -### -fsyntax-only -Xarch_i386 -Wall -Xarch_ppc -Wunused -arch i386 -arch ppc %s &> %t &&
|
||||
// RUN: grep '"-Xarch"' %t | count 0 &&
|
||||
// RUN: grep '"-Wall"' %t | count 1 &&
|
||||
// RUN: grep '"-arch" "i386"' %t | count 1 &&
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
// RUN: xcc -fsyntax-only -### %s | count 1 &&
|
||||
// RUN: xcc -fsyntax-only -### %s -no-integrated-cpp | count 2 &&
|
||||
// RUN: xcc -fsyntax-only -### %s -save-temps | count 2
|
||||
// RUN: xcc -fsyntax-only -### %s 2>&1 | count 1 &&
|
||||
// RUN: xcc -fsyntax-only -### %s -no-integrated-cpp 2>&1 | count 2 &&
|
||||
// RUN: xcc -fsyntax-only -### %s -save-temps 2>&1 | count 2
|
||||
|
|
|
|||
Loading…
Reference in New Issue