Merge "Run makevars singleton after all other registered singletons"
am: a838004f8c
Change-Id: I9aec2658898401b7fc4988850a2481b5e5d915f0
This commit is contained in:
commit
f54b401be4
2 changed files with 4 additions and 4 deletions
|
@ -92,10 +92,6 @@ func RegisterMakeVarsProvider(pctx PackageContext, provider MakeVarsProvider) {
|
|||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
func init() {
|
||||
RegisterSingletonType("makevars", makeVarsSingletonFunc)
|
||||
}
|
||||
|
||||
func makeVarsSingletonFunc() Singleton {
|
||||
return &makeVarsSingleton{}
|
||||
}
|
||||
|
|
|
@ -99,5 +99,9 @@ func (ctx *Context) Register() {
|
|||
|
||||
registerMutators(ctx.Context, preArch, preDeps, postDeps)
|
||||
|
||||
// Register makevars after other singletons so they can export values through makevars
|
||||
ctx.RegisterSingletonType("makevars", SingletonFactoryAdaptor(makeVarsSingletonFunc))
|
||||
|
||||
// Register env last so that it can track all used environment variables
|
||||
ctx.RegisterSingletonType("env", SingletonFactoryAdaptor(EnvSingleton))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue