From: Daniel Dunbar Date: Sun, 18 Jan 2009 21:35:24 +0000 (+0000) Subject: ccc: Bug fix, pch generation should not try to output on pipe and -E X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af44a62640480957c29d96c99853b50e3aceded8;p=clang ccc: Bug fix, pch generation should not try to output on pipe and -E should. This needs cleanup. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62473 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py index dfd6ff24c4..e8d2d3d027 100644 --- a/tools/ccc/ccclib/Driver.py +++ b/tools/ccc/ccclib/Driver.py @@ -679,10 +679,10 @@ class Driver(object): # phase and there was no user override. # # FIXME: What is the best way to handle this? - if (atTopLevel and - isinstance(phase, Phases.PreprocessPhase) and - not finalOutput): - outputToPipe = True + if atTopLevel: + if (isinstance(phase.phase, Phases.PreprocessPhase) and + not finalOutput): + outputToPipe = True elif hasPipe: outputToPipe = True