Merge "Temporarily disable cc_objects in mixed builds" am: 39d3830205
am: f84f690929
am: f0946b0715
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1640582 Change-Id: I21f5c94906565d2f712199a0cc9826b1b8c35935
This commit is contained in:
commit
a801072f60
13
cc/object.go
13
cc/object.go
|
@ -53,17 +53,8 @@ type objectBazelHandler struct {
|
|||
}
|
||||
|
||||
func (handler *objectBazelHandler) generateBazelBuildActions(ctx android.ModuleContext, label string) bool {
|
||||
bazelCtx := ctx.Config().BazelContext
|
||||
objPaths, ok := bazelCtx.GetCcObjectFiles(label, ctx.Arch().ArchType)
|
||||
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
|
||||
// TODO(b/181794963): restore mixed builds once cc_object incompatibility resolved
|
||||
return false
|
||||
}
|
||||
|
||||
type ObjectLinkerProperties struct {
|
||||
|
|
Loading…
Reference in New Issue