summaryrefslogtreecommitdiff
path: root/scripts/main.mk
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/main.mk')
-rw-r--r--scripts/main.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/main.mk b/scripts/main.mk
index b11e9053a0..de49c9967a 100644
--- a/scripts/main.mk
+++ b/scripts/main.mk
@@ -83,6 +83,11 @@ GYP_FLAGS += -Dcxx_host=$(CXX_HOST)
GYP_FLAGS += --depth=.
GYP_FLAGS += -Goutput_dir=.
GYP_FLAGS += --generator-output=./build/$(HOST_SLUG)
+ifeq ($(ENABLE_COVERAGE),1)
+GYP_FLAGS += -Denable_coverage=1
+else ifneq ($(ENABLE_COVERAGE),1)
+GYP_FLAGS += -Denable_coverage=0
+endif
.PHONY: Makefile/__project__
Makefile/__project__: print-env $(SUBMODULES) config/$(HOST_SLUG).gypi