diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2021-01-11 15:36:12 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-11 15:36:12 -0800 |
| commit | ba507a8193447608a685f4e9aabaac3fa3d72e44 (patch) | |
| tree | 033865e833649a77ec26bbd50eed37b396bac57d /py | |
| parent | 10093d37c578d3302ce8e271badfad43fe0a56ec (diff) | |
| parent | 255ffa979cd62063bcbabbc64e3c4fb8d1c0f216 (diff) | |
Merge pull request #3957 from dhalbert/gcc10-debug-builds
new CIRCUITPY_DEBUG flag passes DEBUG into C preprocessor
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 ca8d548f3..21bd5b965 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. |
