From 9868487540d5620d95fd75bf8c287b8e66f716f4 Mon Sep 17 00:00:00 2001 From: Pirama Arumuga Nainar Date: Thu, 27 Jan 2022 13:18:02 -0800 Subject: [PATCH] Set '%c' in LLVM_PROFILE_FILE for continuous mode Bug: http://b/194128476 If CLANG_COVERAGE_CONTINUOUS_MODE is set, enable continuous mode by adding '%c' to LLVM_PROFILE_FILE. Test: CLANG_COVERAGE_CONTINUOUS_MODE m and verify continuous mode works. Change-Id: I8ace01f2aeaef62857e73308b04a535739171b53 --- rootdir/Android.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rootdir/Android.mk b/rootdir/Android.mk index 11f414f85..fe23b6206 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -79,7 +79,11 @@ 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 ($(CLANG_COVERAGE_CONTINUOUS_MODE),true) + 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,