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