New experimental/undocumented feature: 'works_on_empty'.
[oota-llvm.git] / lib / CompilerDriver / CompilationGraph.cpp
index 524607bee779633f14bb408d459d73dad6d53eed..a36d3fb692a7f9b6ce1a56b495d8104479fb8c54 100644 (file)
@@ -313,7 +313,7 @@ int CompilationGraph::Build (const sys::Path& TempDir,
     JoinTool* JT = &dynamic_cast<JoinTool&>(*CurNode->ToolPtr.getPtr());
 
     // Are there any files in the join list?
-    if (JT->JoinListEmpty())
+    if (JT->JoinListEmpty() && !(JT->WorksOnEmpty() && InputFilenames.empty()))
       continue;
 
     Action CurAction = JT->GenerateAction(CurNode->HasChildren(),