From 1cb62a5d466173ce4e8690eb320c44d5ddd6e1e2 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 3 Apr 2024 00:44:55 +0800 Subject: disable native shared module for luajit --- xmake/rules/module/xmake.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'xmake/rules/module/xmake.lua') diff --git a/xmake/rules/module/xmake.lua b/xmake/rules/module/xmake.lua index 34b3110ec..f70c71d7e 100644 --- a/xmake/rules/module/xmake.lua +++ b/xmake/rules/module/xmake.lua @@ -29,6 +29,7 @@ rule("module.binary") rule("module.shared") add_deps("utils.symbols.export_all") on_load(function (target) + assert(not xmake.luajit(), "rule(module.shared) only support for lua54 runtime!") import("core.project.config") target:set("kind", "shared") target:set("basename", "module_" .. target:name()) -- cgit v1.3.1