From b13e8ac6c847e8ec9027d851113e59602f27f53c Mon Sep 17 00:00:00 2001 From: Pirama Arumuga Nainar Date: Thu, 15 Jul 2021 10:10:29 -0700 Subject: [rust] [coverage] Don't pass -C link-dead-code Bug: http://b/186873963 Per jgalenson@, this was added for GCOV and is not needed for clang coverage. Test: http://go/abtd/run/L71000000950546158 Change-Id: I352669687cbe764d938acb94d9d4fe0c24a31a56 --- rust/coverage_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/coverage_test.go') diff --git a/rust/coverage_test.go b/rust/coverage_test.go index 4b6c9d4b7..f3cd3758c 100644 --- a/rust/coverage_test.go +++ b/rust/coverage_test.go @@ -56,7 +56,7 @@ func TestCoverageFlags(t *testing.T) { fizzCov := ctx.ModuleForTests("fizz_cov", "android_arm64_armv8-a_cov").Rule("rustc") buzzNoCov := ctx.ModuleForTests("buzzNoCov", "android_arm64_armv8-a").Rule("rustc") - rustcCoverageFlags := []string{"-Z instrument-coverage", " -g ", "-C link-dead-code"} + rustcCoverageFlags := []string{"-Z instrument-coverage", " -g "} for _, flag := range rustcCoverageFlags { missingErrorStr := "missing rustc flag '%s' for '%s' module with coverage enabled; rustcFlags: %#v" containsErrorStr := "contains rustc flag '%s' for '%s' module with coverage disabled; rustcFlags: %#v" -- cgit v1.2.3-59-g8ed1b