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
This commit is contained in:
Damien George
2019-05-02 09:59:21 +10:00
parent 6323cbda4f
commit 7e90e22ea5
3 changed files with 9 additions and 3 deletions

View File

@@ -40,9 +40,6 @@
#define QSTR_LAST_STATIC MP_QSTR_zip
// The current version of .mpy files
#define MPY_VERSION (4)
// Macros to encode/decode flags to/from the feature byte
#define MPY_FEATURE_ENCODE_FLAGS(flags) (flags)
#define MPY_FEATURE_DECODE_FLAGS(feat) ((feat) & 3)