Commit c7cbdd4c authored by Deucе's avatar Deucе 👌🏾
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
Pipeline #2808 failed with stage
in 10 minutes and 15 seconds
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment