Merge "Disable mixed builds for non-device OS" am: 4ea6052650
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1834999 Change-Id: I7bdd47462db00faeaa85917d47f310c17b134aae
This commit is contained in:
committed by
Automerger Merge Worker
commit
f75a32998e
4
cc/cc.go
4
cc/cc.go
@@ -1711,7 +1711,9 @@ func (c *Module) setSubnameProperty(actx android.ModuleContext) {
|
||||
func (c *Module) maybeGenerateBazelActions(actx android.ModuleContext) bool {
|
||||
bazelModuleLabel := c.GetBazelLabel(actx, c)
|
||||
bazelActionsUsed := false
|
||||
if c.MixedBuildsEnabled(actx) && c.bazelHandler != nil {
|
||||
// Mixed builds mode is disabled for modules outside of device OS.
|
||||
// TODO(b/200841190): Support non-device OS in mixed builds.
|
||||
if c.MixedBuildsEnabled(actx) && c.bazelHandler != nil && actx.Os().Class == android.Device {
|
||||
bazelActionsUsed = c.bazelHandler.GenerateBazelBuildActions(actx, bazelModuleLabel)
|
||||
}
|
||||
return bazelActionsUsed
|
||||
|
Reference in New Issue
Block a user