1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-31 07:33:01 +00:00

Change build options for emscripten.

This commit is contained in:
Calvin Rose
2018-10-21 12:44:58 -04:00
parent 92202e1c8b
commit a20799b59a
2 changed files with 6 additions and 1 deletions

View File

@@ -96,6 +96,8 @@ extern "C" {
/* Check emscripten */
#ifdef __EMSCRIPTEN__
#define JANET_NO_DYNAMIC_MODULES
#define JANET_NO_NANBOX
#define JANET_WALIGN 8
#endif
/* Define how global janet state is declared */
@@ -180,11 +182,13 @@ extern "C" {
#endif
/* Alignment for pointers */
#ifndef JANET_WALIGN
#ifdef JANET_32
#define JANET_WALIGN 4
#else
#define JANET_WALIGN 8
#endif
#endif
/***** END SECTION CONFIG *****/