commit | 074a5d35bffc80ff05ae4ce593314045bbf03c2d | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Thu Jul 27 01:53:56 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Jul 27 01:53:56 2017 +0000 |
tree | cb011b82f9ecbcaaec691a3b0dc23116873fecfb | |
parent | 9ccbabc1eacd8503f612f1a9888d754c95839aa6 [diff] | |
parent | ae15271392ada74c29ea5d864ffbeaac436faceb [diff] |
Merge "Delete output files before copying to them."
diff --git a/android/defs.go b/android/defs.go index a7ba219..ec8dcf9 100644 --- a/android/defs.go +++ b/android/defs.go
@@ -47,7 +47,7 @@ // 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")