define_add1_sub1 ();
define_negate ();
+ gcc_jit_context_new_global (comp.ctxt,
+ NULL,
+ GCC_JIT_GLOBAL_EXPORTED,
+ comp.int_type,
+ "native_compiled_emacs_lisp");
return Qt;
}
{
dynlib_handle_ptr handle;
emacs_init_function module_init;
- void *gpl_sym;
+ void *gpl_sym, *native_comp;
CHECK_STRING (file);
handle = dynlib_open (SSDATA (file));
xsignal2 (Qmodule_open_failed, file, build_string (dynlib_error ()));
gpl_sym = dynlib_sym (handle, "plugin_is_GPL_compatible");
- if (!gpl_sym)
+ native_comp = dynlib_sym (handle, "native_compiled_emacs_lisp");
+ if (!gpl_sym && !native_comp)
xsignal1 (Qmodule_not_gpl_compatible, file);
module_init = (emacs_init_function) dynlib_func (handle, "emacs_module_init");