Merge "Delete output files before copying to them."

This commit is contained in:
Treehugger Robot
2017-07-27 01:53:56 +00:00
committed by Gerrit Code Review

View File

@@ -47,7 +47,7 @@ var (
// A copy rule.
Cp = pctx.AndroidStaticRule("Cp",
blueprint.RuleParams{
Command: "cp $cpPreserveSymlinks $cpFlags $in $out",
Command: "rm -f $out && cp $cpPreserveSymlinks $cpFlags $in $out",
Description: "cp $out",
},
"cpFlags")