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

@@ -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,