Files
build_soong/cc
Ivan Lozano 0a468a4f3b rust: made-to-order rust staticlibs
Whenever any two Rust static libraries are included
as static libraries anywhere in a CC dependency tree, we sometimes
get duplicate symbol errors. To avoid this, we no longer
directly link multiple rust static libs to CC modules.

Instead, we build rust_ffi_rlib modules and produce the actual
static library that gets linked against the CC module based on
that CC module's full list of Rust rlib dependencies.

This introduces a new static_rlibs property for cc modules to
define the rust_ffi_rlib dependencies, which are then used to
generate the module above.

This CL is intended to deprecate rust_ffi_static. It leaves
rust_ffi_static and rust_ffi static variants in place until
the remaining rust_ffi_static declarations and uses can be
removed. In the meantime, rust_ffi_static produces
rust_ffi_rlib variants as well to make the transition easier.

Bug: 254469782
Test: m # with no changes
Test: m libapexsupport # with static_rlibs
Test: m libunwindstack # with static_rlibs
Test: m netsimd # with static_rlibs, no duplicate symbols
Test: m blueprint_tests # New Soong tests

Change-Id: I47e27ac967ef0cad46d398ebf59d8275929ae28a
2024-05-16 13:00:43 -04:00
..
2024-02-09 12:22:13 -08:00
2024-02-09 13:49:02 -08:00
2024-05-16 13:00:43 -04:00
2024-05-16 13:00:43 -04:00
2024-05-16 13:00:43 -04:00
2023-05-19 20:31:32 +00:00
2024-02-16 19:42:15 +00:00
2023-05-19 20:31:32 +00:00
2024-02-09 13:49:02 -08:00
2024-05-16 13:00:43 -04:00
2024-01-10 16:29:51 +09:00
2024-01-09 11:37:14 +09:00
2024-01-09 22:09:07 +00:00
2024-05-16 13:00:43 -04:00
2024-05-16 13:00:43 -04:00
2024-04-05 01:56:56 +00:00
2023-05-19 20:31:32 +00:00
2023-10-18 17:42:59 -07:00
2020-07-16 13:21:43 -07:00
2024-04-05 01:56:56 +00:00
2024-02-28 19:14:24 -08:00
2024-01-09 11:37:14 +09:00
2024-05-16 13:00:43 -04:00
2024-04-05 01:56:56 +00:00
2024-04-05 01:56:56 +00:00