diff options
| author | Jim Mussared | 2020-04-03 12:55:14 +1100 |
|---|---|---|
| committer | Damien George | 2020-04-13 21:20:32 +1000 |
| commit | 45cf76465c5fae8349aa65b78328d38ecab7308d (patch) | |
| tree | 519129cb2bf0994b798ac27f6559f41a097752d2 /ports/unix/variants/fast | |
| parent | f66c9895169090e05ba5d0d9fc9b191dc072c96f (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.mk | 2 |
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 |
