Merge "Set '%c' in LLVM_PROFILE_FILE for continuous mode" am: d2a27913a9

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

Change-Id: Id27f40ea98ec8ba4232059b17fb88dec5b257b84
This commit is contained in:
Treehugger Robot 2022-03-08 06:57:49 +00:00 committed by Automerger Merge Worker
commit db1d9c1c2a

View file

@ -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,