summaryrefslogtreecommitdiff
path: root/xmake/rules/module/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-03 00:44:55 +0800
committerruki <[email protected]>2024-04-03 00:44:55 +0800
commit1cb62a5d466173ce4e8690eb320c44d5ddd6e1e2 (patch)
tree8b573dd47167f04909784fac2b1bd58956ce9118 /xmake/rules/module/xmake.lua
parent3099b75ce297e85be6c186f6ee1bf9fe644bdb95 (diff)
disable native shared module for luajit
Diffstat (limited to 'xmake/rules/module/xmake.lua')
-rw-r--r--xmake/rules/module/xmake.lua1
1 files changed, 1 insertions, 0 deletions
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())