mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
8b8e607284
This will ensure luacheck and busted are only installed when they're actually needed. This cuts total build time by over 50%. Closes https://github.com/neovim/neovim/issues/22797.
8 lines
428 B
Lua
8 lines
428 B
Lua
local platform = vim.loop.os_uname()
|
|
local deps_install_dir = os.getenv 'DEPS_INSTALL_DIR'
|
|
local suffix = (platform and platform.sysname:lower():find'windows') and '.dll' or '.so'
|
|
package.path = deps_install_dir.."/share/lua/5.1/?.lua;"..deps_install_dir.."/share/lua/5.1/?/init.lua;"..package.path
|
|
package.cpath = deps_install_dir.."/lib/lua/5.1/?"..suffix..";"..package.cpath;
|
|
|
|
require 'busted.runner'({ standalone = false })
|