Merge "Delete output files before copying to them."

am: 074a5d35bf

Change-Id: I37673bb2aae7076a18788b36a917625d95474302
This commit is contained in:
Josh Gao
2017-07-27 02:04:38 +00:00
committed by android-build-merger

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")