Export cc functions for snapshotting Rust rlibs.
Export additional fuctions, structs, and interfaces from cc for use in the rust package to allow for rlib snapshotting. Bug: 184042776 Test: m nothing Change-Id: I4c53b9378d5d5b5973dbd23ab692cdfb2ede60b9
This commit is contained in:
@@ -365,8 +365,8 @@ func (m *Module) SetCoreVariantNeeded(b bool) {
|
||||
}
|
||||
|
||||
func (m *Module) SnapshotVersion(mctx android.BaseModuleContext) string {
|
||||
if snapshot, ok := m.linker.(snapshotInterface); ok {
|
||||
return snapshot.version()
|
||||
if snapshot, ok := m.linker.(SnapshotInterface); ok {
|
||||
return snapshot.Version()
|
||||
} else {
|
||||
mctx.ModuleErrorf("version is unknown for snapshot prebuilt")
|
||||
// Should we be panicking here instead?
|
||||
|
Reference in New Issue
Block a user