summaryrefslogtreecommitdiff
path: root/android/defs.go
diff options
context:
space:
mode:
author Chih-Hung Hsieh <chh@google.com> 2022-08-10 20:51:37 -0700
committer Chih-hung Hsieh <chh@google.com> 2022-08-16 01:03:10 +0000
commit1048a73f218a6735b310bb6abbffa366bb361743 (patch)
tree9de7723f9aff4eba2723f9244cf3ac9b5e0ecd5e /android/defs.go
parent9a5db000daba8e266f1fb80029def655562961e9 (diff)
CpExecutable should not preserve symlink
* When copy to an $out file, a symlink can become a dangling link. * The following chmod +x will fail with a dangling link. Bug: 241815504 Test: presubmit builds Change-Id: Ic3dd9d41376a94381981fb973b41a1650f5ac946
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 362b382b3..2a28e98a6 100644
--- a/android/defs.go
+++ b/android/defs.go
@@ -68,7 +68,7 @@ var (
CpExecutable = pctx.AndroidStaticRule("CpExecutable",
blueprint.RuleParams{
- Command: "rm -f $out && cp $cpPreserveSymlinks $cpFlags $in $out && chmod +x $out$extraCmds",
+ Command: "rm -f $out && cp $cpFlags $in $out && chmod +x $out$extraCmds",
Description: "cp $out",
},
"cpFlags", "extraCmds")