summaryrefslogtreecommitdiff
path: root/android/writedocs.go
diff options
context:
space:
mode:
author Lukacs T. Berki <lberki@google.com> 2021-03-02 10:09:41 +0100
committer Lukacs T. Berki <lberki@google.com> 2021-03-08 08:27:58 +0100
commit7d613bfe2cf0a864ce8b676212958dcb62bd2894 (patch)
tree49b4fae7485f1ac1d902a58b3f7d9627948cca70 /android/writedocs.go
parent6d3e72688729ea72bf64f1e7dacccc5b57f384be (diff)
Make it possible to debug soong_ui.
This works by setting the SOONG_UI_DELVE= environment variable to the port on which soong_ui should accept a Delve connection on. This is achieved by reusing the Delve execution logic between soong_ui and soong_build. Test: Manual. Change-Id: Id2c1d4b6faac1a4a3918c91030ce2239f7daf54f
Diffstat (limited to 'android/writedocs.go')
-rw-r--r--android/writedocs.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/android/writedocs.go b/android/writedocs.go
index 6417690db..6cb2f1024 100644
--- a/android/writedocs.go
+++ b/android/writedocs.go
@@ -66,7 +66,9 @@ func (c *docsSingleton) GenerateBuildActions(ctx SingletonContext) {
soongDocs := ctx.Rule(pctx, "soongDocs",
blueprint.RuleParams{
Command: fmt.Sprintf("rm -f ${outDir}/* && %s --soong_docs %s %s",
- primaryBuilder.String(), docsFile.String(), strings.Join(os.Args[1:], " ")),
+ primaryBuilder.String(),
+ docsFile.String(),
+ "\""+strings.Join(os.Args[1:], "\" \"")+"\""),
CommandDeps: []string{primaryBuilder.String()},
Description: fmt.Sprintf("%s docs $out", primaryBuilder.Base()),
},