Merge "Temporarily disable cc_objects in mixed builds"

This commit is contained in:
Liz Kammer
2021-03-16 21:40:04 +00:00
committed by Gerrit Code Review

View File

@@ -53,17 +53,8 @@ type objectBazelHandler struct {
} }
func (handler *objectBazelHandler) generateBazelBuildActions(ctx android.ModuleContext, label string) bool { func (handler *objectBazelHandler) generateBazelBuildActions(ctx android.ModuleContext, label string) bool {
bazelCtx := ctx.Config().BazelContext // TODO(b/181794963): restore mixed builds once cc_object incompatibility resolved
objPaths, ok := bazelCtx.GetCcObjectFiles(label, ctx.Arch().ArchType) return false
if ok {
if len(objPaths) != 1 {
ctx.ModuleErrorf("expected exactly one object file for '%s', but got %s", label, objPaths)
return false
}
handler.module.outputFile = android.OptionalPathForPath(android.PathForBazelOut(ctx, objPaths[0]))
}
return ok
} }
type ObjectLinkerProperties struct { type ObjectLinkerProperties struct {