Merge "Fix: sysprop module can't be used with whole_static_libs" am: 7aac193fa8
am: e8c8a63a57
am: cd1a3247ed
Change-Id: I18ef60bfb0e85bbd5fecc5b96cebf03ea3bc93de
This commit is contained in:
14
cc/cc.go
14
cc/cc.go
@@ -1225,12 +1225,18 @@ func (c *Module) DepsMutator(actx android.BottomUpMutatorContext) {
|
||||
return
|
||||
}
|
||||
|
||||
actx.AddVariationDependencies([]blueprint.Variation{
|
||||
{Mutator: "link", Variation: "static"},
|
||||
}, wholeStaticDepTag, deps.WholeStaticLibs...)
|
||||
|
||||
syspropImplLibraries := syspropImplLibraries(actx.Config())
|
||||
|
||||
for _, lib := range deps.WholeStaticLibs {
|
||||
depTag := wholeStaticDepTag
|
||||
if impl, ok := syspropImplLibraries[lib]; ok {
|
||||
lib = impl
|
||||
}
|
||||
actx.AddVariationDependencies([]blueprint.Variation{
|
||||
{Mutator: "link", Variation: "static"},
|
||||
}, depTag, lib)
|
||||
}
|
||||
|
||||
for _, lib := range deps.StaticLibs {
|
||||
depTag := staticDepTag
|
||||
if inList(lib, deps.ReexportStaticLibHeaders) {
|
||||
|
Reference in New Issue
Block a user