2019-10-30 02:00:09 -04:00
|
|
|
PROG ?= micropython-coverage
|
2019-10-22 20:20:07 -04:00
|
|
|
|
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
|
|
|
|
ports: Enable error text compression for various ports, but not all.
Enabled on: bare-arm, minimal, unix coverage/dev/minimal, stm32, esp32,
esp8266, cc3200, teensy, qemu-arm, nrf. Not enabled on others to be able
to test the code when the feature is disabled (the default case).
Code size change for this commit:
bare-arm: -600 -0.906%
minimal x86: -308 -0.208%
unix x64: +0 +0.000%
unix nanbox: +0 +0.000%
stm32: -3368 -0.869% PYBV10
cc3200: -1024 -0.558%
esp8266: -2512 -0.368% GENERIC
esp32: -2876 -0.205% GENERIC[incl -3168(data)]
nrf: -1708 -1.173% pca10040
samd: +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
2020-03-04 05:56:44 -05:00
|
|
|
MICROPY_ROM_TEXT_COMPRESSION = 1
|
2019-10-22 20:20:07 -04:00
|
|
|
MICROPY_VFS_FAT = 1
|
|
|
|
MICROPY_VFS_LFS1 = 1
|
|
|
|
MICROPY_VFS_LFS2 = 1
|
2020-10-29 02:33:34 -04:00
|
|
|
|
|
|
|
SRC_C += coverage.c
|
|
|
|
SRC_CXX += coveragecpp.cpp
|