From 7e90e22ea52665e38138d1e704d5e527439b663c Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 2 May 2019 09:59:21 +1000 Subject: mpy-cross: Add --version command line option to print version info. Prints something like: MicroPython v1.10-304-g8031b7a25 on 2019-05-02; mpy-cross emitting mpy v4 --- py/persistentcode.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'py/persistentcode.h') diff --git a/py/persistentcode.h b/py/persistentcode.h index b27c3de2f0..2074c64fe2 100644 --- a/py/persistentcode.h +++ b/py/persistentcode.h @@ -30,6 +30,9 @@ #include "py/reader.h" #include "py/emitglue.h" +// The current version of .mpy files +#define MPY_VERSION 4 + enum { MP_NATIVE_ARCH_NONE = 0, MP_NATIVE_ARCH_X86, -- cgit v1.2.3