Closed Freed-Wu closed 1 week ago
Now we have two methods:
local luadir = path.lua_dir(rockspec.name, rockspec.version)
fs.copy_contents("lua", luadir)
to
~/.local/share/lua/5.1/luarocks/build/xmake.lua
Weird: use build.modules
to install lua files cannot work. Maybe another bug?
Xmake Version
2.9.4
Operating System Version and Architecture
NixOS
Describe Bug
For other backend, they will copy
lua/*
to luarocks's lua path such as~/.local/share/lua
. However, xmake only copyoutput/lib/*.so
to luarocks's lib path such as~/.local/lib/lua
.Expected Behavior
Like cmake backend. Such as:
However, xmake will:
Miss lua directory.
Project Configuration
Refer https://github.com/Freed-Wu/rime.nvim
Additional Information and Error Logs
-