ANDROID: build: rust: Switch from linkonce_odr rewrite to internal linkage
`llvm-link` supports the `--internalize` flag, which will convert
functions provided to the new module to `internal` linkage. This matches
the behavior of `clang` on `static inline` functions, and avoids
exporting the symbol from the `.o`.
With this mode of operation, the build works with LTO entirely disabled,
while inlining methods from `helpers`.
Additionally, replace the DW_LANG sed rewrite with `-g0`. It is brittle
to use `sed` on LLVM assembly, and incorrect to expose those functions
as being Rust defined.
Finally, we have an intended triple mismatch of
`aarch64-unknown-none` vs `aarch64-unknown-linux-gnu`, so we suppress
the warning.
Bug: 454054050
Change-Id: Idd4d20a85a3bebfd2d5bbdf9fcae444fb03b066b
Signed-off-by:
Matthew Maurer <mmaurer@google.com>
Loading