[Driver] For the persistent PCH job there is no output path, the frontend determines the filename to use.

Previously the parseable output would have an empty string as the output of the PCH job, this fixes the issue.
This commit is contained in:
Argyrios Kyrtzidis
2017-05-13 14:59:18 -07:00
parent 12f8b390c1
commit a6a3ebee6c
4 changed files with 16 additions and 5 deletions

View File

@@ -808,7 +808,10 @@ ToolChain::constructInvocation(const GeneratePCHJobAction &job,
const JobContext &context) const {
assert(context.Inputs.empty());
assert(context.InputActions.size() == 1);
assert(context.Output.getPrimaryOutputType() == types::TY_PCH);
assert((!job.isPersistentPCH() &&
context.Output.getPrimaryOutputType() == types::TY_PCH) ||
(job.isPersistentPCH() &&
context.Output.getPrimaryOutputType() == types::TY_Nothing));
ArgStringList Arguments;