Skip to content

Commit 4f00803

Browse files
lispmeisterdpgeorge
authored andcommitted
py/emitglue: Get persistent bytecode working on Linux ARM platform.
1 parent 484a471 commit 4f00803

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

py/emitglue.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ mp_raw_code_t *mp_raw_code_load_mem(const byte *buf, size_t len) {
403403
// here we define mp_raw_code_load_file depending on the port
404404
// TODO abstract this away properly
405405

406-
#if defined(__i386__) || defined(__x86_64__)
406+
#if defined(__i386__) || defined(__x86_64__) || (defined(__arm__) && (defined(__unix__)))
407407
// unix file reader
408408

409409
#include <sys/stat.h>
@@ -637,7 +637,7 @@ void mp_raw_code_save(mp_raw_code_t *rc, mp_print_t *print) {
637637
// here we define mp_raw_code_save_file depending on the port
638638
// TODO abstract this away properly
639639

640-
#if defined(__i386__) || defined(__x86_64__)
640+
#if defined(__i386__) || defined(__x86_64__) || (defined(__arm__) && (defined(__unix__)))
641641

642642
#include <unistd.h>
643643
#include <sys/stat.h>

0 commit comments

Comments
 (0)