diff options
author | 2024-11-20 22:18:11 +0000 | |
---|---|---|
committer | 2024-12-13 18:12:57 +0000 | |
commit | f4589017b4bf593c73741deeeaff1831882f9f29 (patch) | |
tree | 62fb64dbf1b5a3a95002f7a9208eca95185e0477 /rust/rust.go | |
parent | f7bbd2fe40e43f7fda7e08d08eeb9c2a93552ad9 (diff) |
rust: Add version scripts and symbol exports
This allows Rust modules to define a version_script for shared library
variants.
This requires using a wrapper for the linker (clang++) to intercept
the flags which rustc emits.
This also adds the ability to export additional symbols in addition
to those exported by rustc by default, e.g. whole_static_library
symbols.
Bug: 314309643
Test: New Soong tests pass.
Test: m
Test: m <simple version script module>
Test: m <simple extra symbols module>
Change-Id: I93c9552e5e1181df4663d194c4df4b7053553dd4
Diffstat (limited to 'rust/rust.go')
-rw-r--r-- | rust/rust.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/rust.go b/rust/rust.go index 64cfa40d2..a7ad29405 100644 --- a/rust/rust.go +++ b/rust/rust.go @@ -427,6 +427,7 @@ type PathDeps struct { StaticLibs android.Paths ProcMacros RustLibraries AfdoProfiles android.Paths + LinkerDeps android.Paths // depFlags and depLinkFlags are rustc and linker (clang) flags. depFlags []string |