Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a7b2965 authored by Pirama Arumuga Nainar's avatar Pirama Arumuga Nainar Committed by Automerger Merge Worker
Browse files

Merge "Enable continuous coverage: use '%c' specifier in LLVM_PROFILE_FILE" am: f9a54a86

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

Change-Id: I38d350391163f86156a8f65016693284ddc18849
parents 84e4de7d f9a54a86
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -75,10 +75,15 @@ ifeq ($(NATIVE_COVERAGE),true)
  EXPORT_GLOBAL_GCOV_OPTIONS := export GCOV_PREFIX /data/misc/trace
endif

EXPORT_GLOBAL_CLANG_COVERAGE_OPTIONS :=
ifeq ($(CLANG_COVERAGE),true)
  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,
# because init.rc is conditionally included.