From 257bbb3fa4a5c2f47f4a9481ea5a6899aac27a2c Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 4 Apr 2024 00:52:36 +0800 Subject: replace foo tests --- xmake/rules/module/xmake.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xmake/rules/module/xmake.lua') 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) -- cgit v1.3.1