Skip to content

Commit

Permalink
Merge pull request swiftlang#197 from ddunbar/rdar35403456
Browse files Browse the repository at this point in the history
[BuildSystem] Fix symlink output value if the output is ever missing.
  • Loading branch information
ddunbar authored Nov 9, 2017
2 parents 8d54d1d + 5c24bb9 commit 177bbca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/BuildSystem/BuildSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2076,7 +2076,10 @@ class SymlinkCommand : public Command {
// result for the output.
assert(value.isSuccessfulCommand());

return BuildValue::makeExistingInput(value.getOutputInfo());
auto info = value.getOutputInfo();
if (info.isMissing())
return BuildValue::makeMissingOutput();
return BuildValue::makeExistingInput(info);
}

virtual bool isResultValid(BuildSystem& system,
Expand Down

0 comments on commit 177bbca

Please sign in to comment.