Skip to content
Snippets Groups Projects
Commit c7cbdd4c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Enable ctypes in jsdoor

SpiderMokey is now built with ctypes, but the object is only
being created in jsdoor for now.
parent 754f04f9
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2808 failed
......@@ -4,7 +4,7 @@ SRC_ROOT = ../../src
# Cross platform/compiler definitions
include $(SRC_ROOT)/build/Common.gmake # defines clean and output directory rules
JS_CONFIGURE_ARGS += $(EXTRA_JS_CONFIGURE_ARGS) --with-system-nspr --disable-tests --disable-shared-js --enable-threadsafe --prefix=$(shell echo `pwd`/$(JS_IDIR))
JS_CONFIGURE_ARGS += $(EXTRA_JS_CONFIGURE_ARGS) --with-system-nspr --disable-tests --disable-shared-js --enable-threadsafe --prefix=$(shell echo `pwd`/$(JS_IDIR)) --enable-ctypes
ifdef DEBUG
JS_CONFIGURE_ARGS += --enable-debug-symbols --disable-optimize
else
......
......@@ -251,6 +251,9 @@ BOOL DLLCALL js_CreateCommonObjects(JSContext* js_cx
/* Global Object */
if(!js_CreateGlobalObject(js_cx, &scfg, methods, js_startup, glob))
return(FALSE);
#ifdef JS_HAS_CTYPES
JS_InitCTypesClass(js_cx, *glob);
#endif
do {
/* System Object */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment