Pipe the Optional flag from BuildParams to the build definition
An Optional flag on buildDef is not very useful on its own, BuildParams is what is exposed to modules. Change-Id: I49b341654162adbc4eab884e88c21e68bbce8c75
This commit is contained in:
parent
aa847f2893
commit
46f8d184fb
1 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,7 @@ type BuildParams struct {
|
|||
Implicits []string // The list of implicit dependencies.
|
||||
OrderOnly []string // The list of order-only dependencies.
|
||||
Args map[string]string // The variable/value pairs to set.
|
||||
Optional bool // Skip outputting a default statement
|
||||
}
|
||||
|
||||
// A poolDef describes a pool definition. It does not include the name of the
|
||||
|
@ -268,6 +269,8 @@ func parseBuildParams(scope scope, params *BuildParams) (*buildDef,
|
|||
return nil, fmt.Errorf("error parsing OrderOnly param: %s", err)
|
||||
}
|
||||
|
||||
b.Optional = params.Optional
|
||||
|
||||
argNameScope := rule.scope()
|
||||
|
||||
if len(params.Args) > 0 {
|
||||
|
|
Loading…
Reference in a new issue