feat(build): make build.zig run unittests

This commit is contained in:
bfredl
2025-05-16 12:59:59 +02:00
parent c4501e98f2
commit e25b99c5b6
4 changed files with 60 additions and 18 deletions

View File

@@ -1,5 +1,9 @@
local platform = vim.uv.os_uname()
local deps_install_dir = table.remove(_G.arg, 1)
_G.c_include_path = {}
while vim.startswith(_G.arg[1], '-I') do
table.insert(_G.c_include_path, string.sub(table.remove(_G.arg, 1), 3))
end
local subcommand = table.remove(_G.arg, 1)
local suffix = (platform and platform.sysname:lower():find 'windows') and '.dll' or '.so'
package.path = (deps_install_dir .. '/?.lua;')