2020-04-03 09:55:14 +08:00
|
|
|
# Disable optimisations and enable assert() on coverage builds.
|
|
|
|
DEBUG ?= 1
|
2019-10-23 08:20:07 +08:00
|
|
|
|
2020-01-24 08:51:21 +08:00
|
|
|
CFLAGS += \
|
2019-10-23 08:20:07 +08:00
|
|
|
-fprofile-arcs -ftest-coverage \
|
2020-04-09 19:59:11 +08:00
|
|
|
-Wformat -Wmissing-declarations -Wmissing-prototypes \
|
2019-10-23 08:20:07 +08:00
|
|
|
-Wold-style-definition -Wpointer-arith -Wshadow -Wuninitialized -Wunused-parameter \
|
2021-03-30 21:45:43 +08:00
|
|
|
-DMICROPY_UNIX_COVERAGE
|
2019-10-23 08:20:07 +08:00
|
|
|
|
2020-01-24 08:51:21 +08:00
|
|
|
LDFLAGS += -fprofile-arcs -ftest-coverage
|
2019-10-23 08:20:07 +08:00
|
|
|
|
2020-06-09 14:45:17 +08:00
|
|
|
FROZEN_MANIFEST ?= $(VARIANT_DIR)/manifest.py
|
2020-10-21 17:13:47 +08:00
|
|
|
USER_C_MODULES = $(TOP)/examples/usercmodule
|
2019-10-23 08:20:07 +08:00
|
|
|
|
2020-10-29 14:33:34 +08:00
|
|
|
SRC_C += coverage.c
|
|
|
|
SRC_CXX += coveragecpp.cpp
|