Add objectLinker to cmake_snapshot supported module types
Building with USE_HOST_MUSL=true adds dependencies on the musl
crt objects, which then fails analysis in cmake_snapshot. Add
*objectLinker to the supported types. The resulting snapshot
is unlikley to work, but at least analysis will pass.
Test: m USE_HOST_MUSL=true nothing
Bug: 190084016
Flag: EXEMPT bugfix
Change-Id: Ifa3858de78c6f3699eb902e968e431bbbc2ad3a8
diff --git a/cc/cmake_snapshot.go b/cc/cmake_snapshot.go
index 61fa46d..790a865 100644
--- a/cc/cmake_snapshot.go
+++ b/cc/cmake_snapshot.go
@@ -533,6 +533,8 @@
return "test"
case *benchmarkDecorator:
return "test"
+ case *objectLinker:
+ return "object"
}
panic(fmt.Sprintf("Unexpected module type: %T", m.linker))
}