Merge "Delete output files before copying to them."
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user