diff options
Diffstat (limited to 'extmod/modplatform.h')
-rw-r--r-- | extmod/modplatform.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extmod/modplatform.h b/extmod/modplatform.h index 5c9cbffb2..a155f071c 100644 --- a/extmod/modplatform.h +++ b/extmod/modplatform.h @@ -48,7 +48,11 @@ #elif defined(__xtensa__) #define MICROPY_PLATFORM_ARCH "xtensa" #elif defined(__riscv) +#if __riscv_xlen == 64 +#define MICROPY_PLATFORM_ARCH "riscv64" +#else #define MICROPY_PLATFORM_ARCH "riscv" +#endif #else #define MICROPY_PLATFORM_ARCH "" #endif |