diff options
| author | Dan Halbert <halbert@halwitz.org> | 2021-01-08 22:16:58 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2021-01-08 23:07:21 -0500 |
| commit | 255ffa979cd62063bcbabbc64e3c4fb8d1c0f216 (patch) | |
| tree | 7261caddac6530758e662a638ea9a01cb2c83edd /py | |
| parent | 55c80754c76a115e2f128931a408e6702aee6ef4 (diff) | |
avoid inline compile errors
Diffstat (limited to 'py')
| -rw-r--r-- | py/circuitpy_defns.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/py/circuitpy_defns.mk b/py/circuitpy_defns.mk index d6d192a95..8e8751036 100644 --- a/py/circuitpy_defns.mk +++ b/py/circuitpy_defns.mk @@ -58,6 +58,14 @@ BASE_CFLAGS = \ # -H +# Set a global CIRCUITPY_DEBUG flag. +# Don't just call it "DEBUG": too many libraries use plain DEBUG. +ifneq ($(DEBUG),) +CFLAGS += -DCIRCUITPY_DEBUG=$(DEBUG) +else +CFLAGS += -DCIRCUITPY_DEBUG=0 +endif + ### # Handle frozen modules. |
