summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-18 23:18:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-18 23:18:19 +0000
commitc4acf9d51607598f1bfaef220add216fff35a425 (patch)
tree7efceabb04ca61bfe81f756e704bff897565407c /clang/lib/Driver/Driver.cpp
parent18d69de52371f1c59ec9fd49cdbf49263a475570 (diff)
downloadbcm5719-llvm-c4acf9d51607598f1bfaef220add216fff35a425.tar.gz
bcm5719-llvm-c4acf9d51607598f1bfaef220add216fff35a425.zip
Driver: Forcibly disable pipe support until we can execute them, the
driver is functional without them. llvm-svn: 67254
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r--clang/lib/Driver/Driver.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index d1db63650c1..b147bb3a415 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -608,6 +608,11 @@ void Driver::BuildJobs(Compilation &C) const {
llvm::PrettyStackTraceString CrashInfo("Building compilation jobs");
bool SaveTemps = C.getArgs().hasArg(options::OPT_save_temps);
bool UsePipes = C.getArgs().hasArg(options::OPT_pipe);
+
+ // FIXME: Pipes are forcibly disabled until we support executing
+ // them.
+ if (!CCCPrintBindings)
+ UsePipes = false;
// -save-temps inhibits pipes.
if (SaveTemps && UsePipes) {
@@ -684,6 +689,13 @@ void Driver::BuildJobsForAction(Compilation &C,
const char *LinkingOutput,
InputInfo &Result) const {
llvm::PrettyStackTraceString CrashInfo("Building compilation jobs for action");
+
+ bool UsePipes = C.getArgs().hasArg(options::OPT_pipe);
+ // FIXME: Pipes are forcibly disabled until we support executing
+ // them.
+ if (!CCCPrintBindings)
+ UsePipes = false;
+
if (const InputAction *IA = dyn_cast<InputAction>(A)) {
// FIXME: This is broken, linker inputs won't work here.
assert(isa<PositionalArg>(IA->getInputArg()) && "FIXME: Linker inputs");
@@ -749,7 +761,7 @@ void Driver::BuildJobsForAction(Compilation &C,
if (AtTopLevel) {
if (isa<PreprocessJobAction>(A) && !C.getArgs().hasArg(options::OPT_o))
OutputToPipe = true;
- } else if (C.getArgs().hasArg(options::OPT_pipe))
+ } else if (UsePipes)
OutputToPipe = true;
}
OpenPOWER on IntegriCloud