summaryrefslogtreecommitdiff
path: root/android/defs.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/defs.go')
-rw-r--r--android/defs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/defs.go b/android/defs.go
index a7ba219a3..ec8dcf9c0 100644
--- a/android/defs.go
+++ b/android/defs.go
@@ -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")