summaryrefslogtreecommitdiff
path: root/xmake/rules/module/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-04 00:52:36 +0800
committerruki <[email protected]>2024-04-04 00:52:36 +0800
commit257bbb3fa4a5c2f47f4a9481ea5a6899aac27a2c (patch)
treec2e8e732ab3696cdefe96ce76d7a600ddeed3bf1 /xmake/rules/module/xmake.lua
parentc04f30ad9010b58554554f925584ec97682a3f18 (diff)
replace foo tests
Diffstat (limited to 'xmake/rules/module/xmake.lua')
-rw-r--r--xmake/rules/module/xmake.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/rules/module/xmake.lua b/xmake/rules/module/xmake.lua
index 2b1b75262..1667c5c2a 100644
--- a/xmake/rules/module/xmake.lua
+++ b/xmake/rules/module/xmake.lua
@@ -29,12 +29,11 @@ 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())
target:set("targetdir", config.buildir())
target:set("strip", "none")
- target:add("sysincludedirs", path.join(os.programdir(), "scripts", "module"))
+ target:add("includedirs", path.join(os.programdir(), "scripts", "module"))
end)