Set --lto-O0 to reduce binary size
Full LTO optimization causes the binary size to increase and break test.
Since rialto is sensitive to binary size, set `--lto-O0` so that we do
not turn on full LTO optimization for the module, which is the default
after aosp/3009938.
Test: atest
Bug: 330749502
Change-Id: I093caa5a99a906f4d0a31cf462bf6a08ec97addf
diff --git a/vmbase/Android.bp b/vmbase/Android.bp
index 07e1b4c..e797aa4 100644
--- a/vmbase/Android.bp
+++ b/vmbase/Android.bp
@@ -57,6 +57,8 @@
hwaddress: false,
},
native_coverage: false,
+ // Use --lto-O0 to reduce binary size.
+ lto_O0: true,
}
// Used by cc_binary when producing the ELF of a vmbase-based binary.