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)
# 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)
-// 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 &&
-// 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