summaryrefslogtreecommitdiff
path: root/py/circuitpy_mpconfig.mk
diff options
context:
space:
mode:
authorThea Flowers <me@thea.codes>2019-10-29 10:11:19 -0700
committerThea Flowers <me@thea.codes>2019-11-05 14:27:53 -0800
commitc7195c4bc5a43f0aae731f3030961b60d1db4cac (patch)
treee01877622fb3b49d17b3532b5646f0b21e6e31b3 /py/circuitpy_mpconfig.mk
parent01bf9321692d00da8628b7b230be3b03665eff82 (diff)
Allow boards to enable the `micropython.native` decorator
Adds the `CIRCUITPY_ENABLE_MPY_NATIVE` for `mpconfigboard.mk` that enables the `micropython.native` decorator.
Diffstat (limited to 'py/circuitpy_mpconfig.mk')
-rw-r--r--py/circuitpy_mpconfig.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/py/circuitpy_mpconfig.mk b/py/circuitpy_mpconfig.mk
index ac79d32d0..c1199571b 100644
--- a/py/circuitpy_mpconfig.mk
+++ b/py/circuitpy_mpconfig.mk
@@ -294,3 +294,10 @@ ifndef CIRCUITPY_BITBANG_APA102
CIRCUITPY_BITBANG_APA102 = 0
endif
CFLAGS += -DCIRCUITPY_BITBANG_APA102=$(CIRCUITPY_BITBANG_APA102)
+
+
+# Enabled micropython.native decorator (experimental)
+ifndef CIRCUITPY_ENABLE_MPY_NATIVE
+CIRCUITPY_ENABLE_MPY_NATIVE = 0
+endif
+CFLAGS += -DCIRCUITPY_ENABLE_MPY_NATIVE=$(CIRCUITPY_ENABLE_MPY_NATIVE)