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:
		| @@ -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 *****/ | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose