platform_build_soong/rust
Ivan Lozano 9ef9cb8b3f rust: Fix coverage in no-std crates
Coverage builds for no_std crates currently fail because
profiler_builtins are part of libstd and therefore do not get included.

When calculating the dependencies for coverage enabled targets, check if
the stdlib is being included, and if it is not then pull the
profiler_builtins sysroot.

Bug: 249551848
Test: CLANG_COVERAGE=true NATIVE_COVERAGE_PATHS='*' make libtinyvec_nostd.rlib-std
Change-Id: I73f89bddcb2d4d9c704cb3962ee39b73888c7f3f
2023-02-14 11:04:21 -05:00
..
config rustc-1.66.1 Build 9591243 2023-02-10 12:24:41 -08:00
afdo.go AFDO for Rust 2022-01-21 18:13:18 +08:00
Android.bp AFDO for Rust 2022-01-21 18:13:18 +08:00
androidmk.go Copy Rust fuzzer dependencies to /data. 2023-02-06 13:48:23 -05: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 Drop rust dependency on musl_linker_script 2022-09-30 15:12:25 -07:00
binary_test.go rust: Refactor stripped output file path 2021-11-09 21:43:58 -05:00
bindgen.go Migrate to the new clang lib dir 2023-02-08 19:54:05 +09:00
bindgen_test.go rust: Add header library support to rust_bindgen. 2020-11-17 13:40:50 -05:00
builder.go Add cross-referencing support for Rust 2022-04-20 20:02:28 -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: Fix coverage in no-std crates 2023-02-14 11:04:21 -05:00
compiler_test.go Flag an error on empty rust module srcs 2021-10-14 15:25:07 +00:00
coverage.go rust: Fix coverage in no-std crates 2023-02-14 11:04:21 -05:00
coverage_test.go [rust/coverage] Use new flag for coverage instrumentation 2022-06-07 11:15:59 -07:00
doc.go rust: doc: Zip up docs when done 2021-08-20 13:08:16 -07:00
fuzz.go Copy Rust fuzzer dependencies to /data. 2023-02-06 13:48:23 -05:00
fuzz_test.go Update RustDefaultVersion to 1.59.0 2022-03-02 19:54:47 +00:00
image.go rust: Enable Rust modules in Product 2023-01-24 16:39:52 -08:00
image_test.go rust: Enable Rust modules in Product 2023-01-24 16:39:52 -08:00
library.go rust: expand docstrings for Rust module types 2022-11-18 12:11:03 +01:00
library_test.go Merge "rust: Test with full Rust “crate_type”" 2022-11-21 10:29:42 +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 Support rust_toolchain_library for rust-project 2021-12-08 17:54:19 +11:00
project_json_test.go Include proc macro crates in rust-project.json 2021-10-06 19:39:06 +00:00
protobuf.go Revert^4 "rust: Only allow bindgen to produce rlibs." 2022-08-10 20:25:50 +00:00
protobuf_test.go Support test fixtures in rust package 2021-03-23 18:47:15 +00:00
rust.go rust: Fix coverage in no-std crates 2023-02-14 11:04:21 -05:00
rust_test.go rust: Enable Rust modules in Product 2023-01-24 16:39:52 -08:00
sanitize.go Driveby: remove duplicate condition 2022-10-12 19:30:15 +00:00
sanitize_test.go rust: Support MTE memtag_heap sanitizer 2021-11-04 10:51:54 -04:00
snapshot_prebuilt.go Add cross-referencing support for Rust 2022-04-20 20:02:28 -07:00
snapshot_utils.go Include static lib information for the snapshot modules 2021-07-01 11:42:28 +00: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 rust: Enable Rust modules in Product 2023-01-24 16:39:52 -08:00
toolchain_library.go rust: Add rust_toolchain_library module. 2021-11-16 08:51:48 -05:00
vendor_snapshot_test.go Use single module for clang runtime libraries 2022-03-07 14:56:32 -08:00