summaryrefslogtreecommitdiff
path: root/android/defs.go
diff options
context:
space:
mode:
author Jingwen Chen <jingwen@google.com> 2020-09-23 04:30:02 +0000
committer Jingwen Chen <jingwen@google.com> 2020-10-19 01:26:50 -0400
commitce679d29ec735058a0f655cd2dc5948dd521dd5c (patch)
tree9e710cff780ebb816c278930a49f641710ef8cd4 /android/defs.go
parent509a9d35ac77b474088016327c21083239a4deb8 (diff)
Add symlink_outputs support to Soong.
This CL adds symlink_outputs to various locations in Soong that creates actions that creates symlink outputs, and explicitly mark them as such. Test: m Bug: 160568334 Change-Id: I322751bada52a9f49011c74731d84761586e03e7
Diffstat (limited to 'android/defs.go')
-rw-r--r--android/defs.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/android/defs.go b/android/defs.go
index 83daa0368..2b1bd85c9 100644
--- a/android/defs.go
+++ b/android/defs.go
@@ -69,8 +69,9 @@ var (
// A symlink rule.
Symlink = pctx.AndroidStaticRule("Symlink",
blueprint.RuleParams{
- Command: "rm -f $out && ln -f -s $fromPath $out",
- Description: "symlink $out",
+ Command: "rm -f $out && ln -f -s $fromPath $out",
+ Description: "symlink $out",
+ SymlinkOutputs: []string{"$out"},
},
"fromPath")