diff options
author | 2020-11-13 11:48:42 -0800 | |
---|---|---|
committer | 2020-11-14 16:26:00 -0800 | |
commit | cf371cc1f73f2c4ac0dc824d16160648b9b1d952 (patch) | |
tree | cdcbddb6393026d7e48f01795c361d407a191ec3 /cc/snapshot_utils.go | |
parent | 1d26d3033a3bb1bf6c62e36818fc901949268bf1 (diff) |
Replace android.WriteFile rule with android.WriteFileRule
The android.WriteFile rule takes careful escaping to produce the
right contents. Wrap it in an android.WriteFileRule that handles
the escaping.
Test: compare all android.WriteFile outputs
Change-Id: If71a5843af47a37ca61714e1a1ebb32d08536c31
Diffstat (limited to 'cc/snapshot_utils.go')
-rw-r--r-- | cc/snapshot_utils.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cc/snapshot_utils.go b/cc/snapshot_utils.go index 238508dc9..05c06ac25 100644 --- a/cc/snapshot_utils.go +++ b/cc/snapshot_utils.go @@ -93,13 +93,6 @@ func combineNotices(ctx android.SingletonContext, paths android.Paths, out strin func writeStringToFile(ctx android.SingletonContext, content, out string) android.OutputPath { outPath := android.PathForOutput(ctx, out) - ctx.Build(pctx, android.BuildParams{ - Rule: android.WriteFile, - Output: outPath, - Description: "WriteFile " + out, - Args: map[string]string{ - "content": content, - }, - }) + android.WriteFileRule(ctx, outPath, content) return outPath } |