platform_build_soong/rust
Ivan Lozano 11200870b0 rust: Add prefer_rlib property for static libstd.
Adds the prefer_rlib property to allow linking libstd statically for
device rust binaries. This also changes the default behavior of rustlibs
to also prefer rlib linkage. This is because dylibs do not provide
rlib-libstd variants and always link in libstd dynamically. Thus a
binary requesting libstd rlib linkage should not attempt to link against
dylibs that link libstd dynamically.

Bug: 168729404
Test: New Soong test passes.
Change-Id: Idf8dfbbce8fd936f55a3fb323b17a1a7f0ee954e
2020-09-28 12:01:47 -04:00
..
config Switch to armv7 for Rust ARM 2020-09-24 14:28:47 -07:00
Android.bp Add rust_protobuf module. 2020-08-31 14:05:39 -04:00
OWNERS Add Matt to OWNERS for Rust 2020-06-26 09:23:47 +02:00
androidmk.go rust: Add libstd linkage mutator for rlibs. 2020-09-18 16:35:14 -04:00
binary.go rust: Add prefer_rlib property for static libstd. 2020-09-28 12:01:47 -04:00
binary_test.go rust: Add prefer_rlib property for static libstd. 2020-09-28 12:01:47 -04:00
bindgen.go Merge "Avoid Rust source provider rule duplication" 2020-09-25 13:14:01 +00:00
bindgen_test.go rust: Fix module name in bindgen_test 2020-09-25 15:50:09 +02:00
builder.go Keep only out file dependency rule in output .d files 2020-08-14 10:15:17 -07:00
builder_test.go [rust] Add SourceProviders as crates support. 2020-08-04 08:13:24 -04:00
clippy.go rust: modify linting properties 2020-08-13 15:58:09 +02:00
clippy_test.go rust: modify linting properties 2020-08-13 15:58:09 +02:00
compiler.go rust: Add libstd linkage mutator for rlibs. 2020-09-18 16:35:14 -04:00
compiler_test.go rust: Add libstd linkage mutator for rlibs. 2020-09-18 16:35:14 -04:00
coverage.go Migrate away from removed option 2020-08-25 15:27:15 -07:00
coverage_test.go rust: Add libstd linkage mutator for rlibs. 2020-09-18 16:35:14 -04:00
library.go Avoid Rust source provider rule duplication 2020-09-25 11:36:13 +02:00
library_test.go rust: Add libstd linkage mutator for rlibs. 2020-09-18 16:35:14 -04:00
prebuilt.go rust: strip libraries and binaries 2020-08-28 10:50:17 +02:00
proc_macro.go rust: strip libraries and binaries 2020-08-28 10:50:17 +02:00
project_json.go rust: validate existence of library source 2020-08-06 15:17:46 +02:00
project_json_test.go rust: validate existence of library source 2020-08-06 15:17:46 +02:00
protobuf.go Add rust_protobuf module. 2020-08-31 14:05:39 -04:00
protobuf_test.go Avoid Rust source provider rule duplication 2020-09-25 11:36:13 +02:00
rust.go Avoid Rust source provider rule duplication 2020-09-25 11:36:13 +02:00
rust_test.go rust: Add libstd linkage mutator for rlibs. 2020-09-18 16:35:14 -04:00
source_provider.go Avoid Rust source provider rule duplication 2020-09-25 11:36:13 +02:00
source_provider_test.go Make source_stem required for Rust SourceProviders 2020-08-05 13:31:34 -04:00
strip.go rust: strip libraries and binaries 2020-08-28 10:50:17 +02:00
test.go rust: Add libstd linkage mutator for rlibs. 2020-09-18 16:35:14 -04:00
test_test.go rust: Add libstd linkage mutator for rlibs. 2020-09-18 16:35:14 -04:00
testing.go rust: Add libstd linkage mutator for rlibs. 2020-09-18 16:35:14 -04:00