diff --git a/core/binary.mk b/core/binary.mk index f5d9bfcc1..34bbe4ea6 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -61,10 +61,14 @@ my_export_c_include_deps := $(LOCAL_EXPORT_C_INCLUDE_DEPS) my_arflags := ifneq (,$(strip $(foreach dir,$(subst $(comma),$(space),$(COVERAGE_PATHS)),$(filter $(dir)%,$(LOCAL_PATH))))) +ifeq (,$(strip $(foreach dir,$(subst $(comma),$(space),$(COVERAGE_EXCLUDE_PATHS)),$(filter $(dir)%,$(LOCAL_PATH))))) my_native_coverage := true else my_native_coverage := false endif +else + my_native_coverage := false +endif my_allow_undefined_symbols := $(strip $(LOCAL_ALLOW_UNDEFINED_SYMBOLS)) ifdef SANITIZE_HOST diff --git a/core/soong_config.mk b/core/soong_config.mk index 92e66aec5..576c8abe0 100644 --- a/core/soong_config.mk +++ b/core/soong_config.mk @@ -43,6 +43,7 @@ $(SOONG_VARIABLES): FORCE echo ''; \ echo ' "NativeCoverage": $(if $(filter true,$(NATIVE_COVERAGE)),true,false),'; \ echo ' "CoveragePaths": [$(if $(COVERAGE_PATHS),"$(subst $(space),"$(comma)",$(subst $(comma),$(space),$(COVERAGE_PATHS)))")],'; \ + echo ' "CoverageExcludePaths": [$(if $(COVERAGE_EXCLUDE_PATHS),"$(subst $(space),"$(comma)",$(subst $(comma),$(space),$(COVERAGE_EXCLUDE_PATHS)))")],'; \ echo ''; \ echo ' "DeviceName": "$(TARGET_DEVICE)",'; \ echo ' "DeviceArch": "$(TARGET_ARCH)",'; \