Make sure JANET_NO_NANBOX is defined for ARM targets

This commit is contained in:
Andre Alves Garzia 2020-07-28 16:51:19 +01:00
parent 0601d851d0
commit ba2beffcd8
1 changed files with 5 additions and 0 deletions

View File

@ -225,6 +225,11 @@ extern "C" {
* To turn of nanboxing, for debugging purposes or for certain
* architectures (Nanboxing only tested on x86 and x64), comment out
* the JANET_NANBOX define.*/
#if defined(_M_ARM64) || defined(_M_ARM) || defined(__aarch64__)
#define JANET_NO_NANBOX
#endif
#ifndef JANET_NO_NANBOX
#ifdef JANET_32
#define JANET_NANBOX_32