diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/projects/other/native_module/modules/shared/foo/xmake.lua | 6 | ||||
| -rw-r--r-- | tests/projects/other/native_module/test.lua | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/tests/projects/other/native_module/modules/shared/foo/xmake.lua b/tests/projects/other/native_module/modules/shared/foo/xmake.lua index 7d3899f95..ad4590ffa 100644 --- a/tests/projects/other/native_module/modules/shared/foo/xmake.lua +++ b/tests/projects/other/native_module/modules/shared/foo/xmake.lua @@ -1,10 +1,6 @@ add_rules("mode.debug", "mode.release") -if xmake.luajit() then - add_requires("luajit", {alias = "lua"}) -else - add_requires("lua 5.4") -end +add_requires("lua 5.4") target("foo") add_rules("module.shared") diff --git a/tests/projects/other/native_module/test.lua b/tests/projects/other/native_module/test.lua index b57362078..0c2735866 100644 --- a/tests/projects/other/native_module/test.lua +++ b/tests/projects/other/native_module/test.lua @@ -1,3 +1,5 @@ function main(t) - t:build() + if not xmake.luajit() then + t:build() + end end |
