diff options
| author | 2025-02-12 15:33:13 -0800 | |
|---|---|---|
| committer | 2025-02-12 15:41:12 -0800 | |
| commit | 53915543c587c18bf7bcdcbc2fdd654d170e015e (patch) | |
| tree | 3657aaadc29846bd4073b735ff57eef5912c450a | |
| parent | ec41af1fe244c64ff0f757329548190b8eb5cae6 (diff) | |
Add PhonyOutput to BuildParams
Now ctx.Build() can be used to create phony rules which have commands.
Bug: 396145326
Test: manual, TH
Change-Id: I60ab42b5478a12d7c5e6ea7a5b772c23fa49692d
| -rw-r--r-- | android/module_context.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android/module_context.go b/android/module_context.go index 1851e7c94..089e184a7 100644 --- a/android/module_context.go +++ b/android/module_context.go @@ -81,6 +81,8 @@ type BuildParams struct { Default bool // Args is a key value mapping for replacements of variables within the Rule Args map[string]string + // PhonyOutput marks this build as `phony_output = true` + PhonyOutput bool } type ModuleBuildParams BuildParams @@ -369,6 +371,7 @@ func convertBuildParams(params BuildParams) blueprint.BuildParams { Validations: params.Validations.Strings(), Args: params.Args, Default: params.Default, + PhonyOutput: params.PhonyOutput, } if params.Depfile != nil { |