diff options
author | Markus Fix <lispmeister@gmail.com> | 2016-03-07 12:15:01 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-03-07 15:15:23 +0000 |
commit | 4f0080346b565cbf9f2204874b81814013d67488 (patch) | |
tree | 82546e824b77ae5d3994d4c95b8fca1e15cb502a /py | |
parent | 484a471f9b6b8f4fcf711c86ef421915c1cd74fb (diff) | |
download | micropython-4f0080346b565cbf9f2204874b81814013d67488.tar.gz micropython-4f0080346b565cbf9f2204874b81814013d67488.zip |
py/emitglue: Get persistent bytecode working on Linux ARM platform.
Diffstat (limited to 'py')
-rw-r--r-- | py/emitglue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/emitglue.c b/py/emitglue.c index 133ba13571..d2baaa8459 100644 --- a/py/emitglue.c +++ b/py/emitglue.c @@ -403,7 +403,7 @@ mp_raw_code_t *mp_raw_code_load_mem(const byte *buf, size_t len) { // here we define mp_raw_code_load_file depending on the port // TODO abstract this away properly -#if defined(__i386__) || defined(__x86_64__) +#if defined(__i386__) || defined(__x86_64__) || (defined(__arm__) && (defined(__unix__))) // unix file reader #include <sys/stat.h> @@ -637,7 +637,7 @@ void mp_raw_code_save(mp_raw_code_t *rc, mp_print_t *print) { // here we define mp_raw_code_save_file depending on the port // TODO abstract this away properly -#if defined(__i386__) || defined(__x86_64__) +#if defined(__i386__) || defined(__x86_64__) || (defined(__arm__) && (defined(__unix__))) #include <unistd.h> #include <sys/stat.h> |