Support host platform cc builds
This involves handling of linux-* platforms (identifying them appropriately as host), disabling unsupported Windows platform, and denylisting of still-problematic modules. Test: mixed_droid, with verification that shared library artifacts originate from bazel-out Change-Id: Ib52db49a2d2a3c1ff9b76af23fd4f22cfc9182d0
This commit is contained in:
committed by
Christopher Parsons
parent
aa1a9e4086
commit
494eef3dc8
2
cc/cc.go
2
cc/cc.go
@@ -1717,7 +1717,7 @@ func (c *Module) maybeGenerateBazelActions(actx android.ModuleContext) bool {
|
||||
bazelActionsUsed := false
|
||||
// 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 {
|
||||
if c.MixedBuildsEnabled(actx) && c.bazelHandler != nil {
|
||||
bazelActionsUsed = c.bazelHandler.GenerateBazelBuildActions(actx, bazelModuleLabel)
|
||||
}
|
||||
return bazelActionsUsed
|
||||
|
Reference in New Issue
Block a user