platform_build_soong/rust
A. Cody Schuffelen f29ca58e88 Darwin/Mac OS host rust compilation fixes
- Don't pass `--as-needed` to the linker on Mac OS which is unsupported
  there
- Use `--force_load` rather than `--Wl,--whole-archive` on Mac OS
- Scan `rustc`'s linker arguments for `-dylib` and `-dynamiclib`, which
  it can use instead of `-shared` on Mac OS:
  7bd81ee190/compiler/rustc_codegen_ssa/src/back/linker.rs (L319)

Test: m libhalf serde_derive
Bug: 291164566
Change-Id: Iecd6c2532fa31c9476834f49b109de98cbd2dccf
2023-08-03 16:26:44 -07:00
..
config Darwin/Mac OS host rust compilation fixes 2023-08-03 16:26:44 -07:00
afdo.go Reimplement afdo support for rust 2023-03-31 17:55:16 -04:00
afdo_test.go Reimplement afdo support for rust 2023-03-31 17:55:16 -04:00
Android.bp Add tests to verify more use cases of afdo in cc and rust 2023-03-27 14:01:40 -04:00
androidmk.go Fix the make name of rust snapshots 2023-03-16 11:05:41 +09:00
benchmark.go Allow adding extra tradefed options in the Android.bp file 2023-01-03 12:47:11 -08:00
benchmark_test.go Add rust_benchmark module to soong. 2021-04-06 12:40:32 +02:00
binary.go rust: Add vendor and recovery dylib support. 2023-07-14 12:43:09 -04:00
binary_test.go Split Rust crate builds into compile and link phases. 2023-04-12 15:51:41 -07:00
bindgen.go rust: Add Bindgen_flag_files property 2023-07-27 07:03:14 +00:00
bindgen_test.go rust: Add Bindgen_flag_files property 2023-07-27 07:03:14 +00:00
builder.go Darwin/Mac OS host rust compilation fixes 2023-08-03 16:26:44 -07:00
builder_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
clippy.go rust: modify linting properties 2020-08-13 15:58:09 +02:00
clippy_test.go Convert remaining rust tests to use test fixtures 2021-03-30 22:45:21 +01:00
compiler.go rust: Set android_vendor and android_product cfg 2023-02-24 19:21:08 +00:00
compiler_test.go Flag an error on empty rust module srcs 2021-10-14 15:25:07 +00:00
coverage.go Split Rust crate builds into compile and link phases. 2023-04-12 15:51:41 -07:00
coverage_test.go Split Rust crate builds into compile and link phases. 2023-04-12 15:51:41 -07:00
doc.go Parallelize singleton execution 2023-05-19 20:31:32 +00:00
fuzz.go Support removing suffix for device specific prebuilt during build 2023-05-09 23:11:42 +00:00
fuzz_test.go rust: Bundle Rust shared dependencies in fuzzers 2023-06-09 14:17:49 -04:00
image.go rust: Enable Product support for dylibs. 2023-07-21 14:02:21 -04:00
image_test.go rust: Set android_vendor and android_product cfg 2023-02-24 19:21:08 +00:00
library.go rust: Add vendor and recovery dylib support. 2023-07-14 12:43:09 -04:00
library_test.go rust: Make dylib-std the canonical rlib form 2023-06-15 18:29:22 +00:00
OWNERS rust: Rust is now GA for platform usage 2022-07-28 06:57:26 -07:00
prebuilt.go Add cross-referencing support for Rust 2022-04-20 20:02:28 -07:00
proc_macro.go Add cross-referencing support for Rust 2022-04-20 20:02:28 -07:00
proc_macro_test.go Pass "--extern proc_macro" to rust_proc_macros. 2021-09-23 10:34:24 -07:00
project_json.go Parallelize singleton execution 2023-05-19 20:31:32 +00:00
project_json_test.go Include proc macro crates in rust-project.json 2021-10-06 19:39:06 +00:00
protobuf.go Add option to use protobuf3 2023-04-24 11:33:50 +02:00
protobuf_test.go Add option to use protobuf3 2023-04-24 11:33:50 +02:00
rust.go Fix missing rust dependencies when ALLOW_MISSING_DEPENDENCIES=true 2023-08-01 10:19:53 -07:00
rust_test.go rust: Add vendor and recovery dylib support. 2023-07-14 12:43:09 -04:00
sanitize.go Merge "Revert "rust: Add SCS sanitizer option for AArch64"" into main 2023-07-31 18:13:40 +00:00
sanitize_test.go Split Rust crate builds into compile and link phases. 2023-04-12 15:51:41 -07:00
snapshot_prebuilt.go rust: Add vendor and recovery dylib support. 2023-07-14 12:43:09 -04:00
snapshot_utils.go rust: Add vendor and recovery dylib support. 2023-07-14 12:43:09 -04:00
source_provider.go Remove unused field 'subAndroidMkOnce'. 2023-01-26 14:06:35 +00:00
source_provider_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
strip.go Add comments to {cc,rust}/strip.go 2020-11-19 20:02:34 +01:00
test.go Use the same rpaths for tests and binaries and cc and rust 2023-01-11 16:04:19 -08:00
test_test.go Put rust_test.data_libs under lib[64] 2022-04-28 23:55:43 +00:00
testing.go Parallelize singleton execution 2023-05-19 20:31:32 +00:00
toolchain_library.go rust: Add rust_toolchain_library module. 2021-11-16 08:51:48 -05:00
vendor_snapshot_test.go rust: Add vendor and recovery dylib support. 2023-07-14 12:43:09 -04:00