aboutsummaryrefslogtreecommitdiff
path: root/ports/unix/variants/fast
diff options
context:
space:
mode:
authorJim Mussared2020-04-03 12:55:14 +1100
committerDamien George2020-04-13 21:20:32 +1000
commit45cf76465c5fae8349aa65b78328d38ecab7308d (patch)
tree519129cb2bf0994b798ac27f6559f41a097752d2 /ports/unix/variants/fast
parentf66c9895169090e05ba5d0d9fc9b191dc072c96f (diff)
unix: Fix behaviour of COPT/NDEBUG for unix variants.
Based on eg 1e6fd9f2b4072873f5d6846b19b2ef0ccc5e4e52, it's understood that the intention for unix builds is that regular builds disable assert, but the coverage build should set -O0 and enable asserts. It looks like this didn't work (even before variants were introduced, eg at v1.11) -- coverage always built with -Os and -DNDEBUG. This commit makes it possible for variants to have finer-grained control over COPT flags, and enables assert() and -O0 on coverage builds. Other variants already match the defaults so they have been updated.
Diffstat (limited to 'ports/unix/variants/fast')
-rw-r--r--ports/unix/variants/fast/mpconfigvariant.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/unix/variants/fast/mpconfigvariant.mk b/ports/unix/variants/fast/mpconfigvariant.mk
index e6022291d..d67f7c8f3 100644
--- a/ports/unix/variants/fast/mpconfigvariant.mk
+++ b/ports/unix/variants/fast/mpconfigvariant.mk
@@ -1,6 +1,6 @@
# build synthetically fast interpreter for benchmarking
-COPT = "-O2 -DNDEBUG -fno-crossjumping"
+COPT += "-fno-crossjumping -O2"
PROG = micropython-fast