Merge "Enable continuous coverage: use '%c' specifier in LLVM_PROFILE_FILE" am: f9a54a86ec am: 8a7b296501 am: 78825506d9

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1729634

Change-Id: If6ecb21915078335c17dd4af3a6e60b54382b208
This commit is contained in:
Pirama Arumuga Nainar 2022-01-10 23:30:27 +00:00 committed by Automerger Merge Worker
commit 7703d26e7e

View file

@ -75,9 +75,14 @@ ifeq ($(NATIVE_COVERAGE),true)
EXPORT_GLOBAL_GCOV_OPTIONS := export GCOV_PREFIX /data/misc/trace
endif
EXPORT_GLOBAL_CLANG_COVERAGE_OPTIONS :=
ifeq ($(CLANG_COVERAGE),true)
EXPORT_GLOBAL_CLANG_COVERAGE_OPTIONS := export LLVM_PROFILE_FILE /data/misc/trace/clang-%20m.profraw
ifeq ($(BIONIC_COVERAGE),false)
# http://b/210012154 Disable continuous coverage if instrumentation is on
# for bionic/libc
EXPORT_GLOBAL_CLANG_COVERAGE_OPTIONS := export LLVM_PROFILE_FILE /data/misc/trace/clang%c-%20m.profraw
else
EXPORT_GLOBAL_CLANG_COVERAGE_OPTIONS := export LLVM_PROFILE_FILE /data/misc/trace/clang-%20m.profraw
endif
endif
# Put it here instead of in init.rc module definition,