mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -04:00
Added changes
This commit is contained in:
parent
f0f162d041
commit
d9a7b80c7b
1 changed files with 12 additions and 22 deletions
|
|
@ -63,28 +63,19 @@ local function select_executable(executables)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function select_args(repo)
|
local function select_args(repo)
|
||||||
if fn.has('win32') then
|
local args = {
|
||||||
return {
|
'-o',
|
||||||
'-o',
|
'parser.so',
|
||||||
'parser.so',
|
'-I./src',
|
||||||
'-I./src',
|
repo.files,
|
||||||
repo.files,
|
'-shared',
|
||||||
'-shared',
|
'-Os',
|
||||||
'-Os',
|
'-lstdc++',
|
||||||
'-lstdc++',
|
}
|
||||||
}
|
if not fn.has('win32') then
|
||||||
else
|
table.insert('-fPIC')
|
||||||
return {
|
|
||||||
'-o',
|
|
||||||
'parser.so',
|
|
||||||
'-I./src',
|
|
||||||
repo.files,
|
|
||||||
'-shared',
|
|
||||||
'-Os',
|
|
||||||
'-lstdc++',
|
|
||||||
'-fPIC'
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
|
return args
|
||||||
end
|
end
|
||||||
|
|
||||||
local function select_install_rm_cmd(cache_folder, project_name)
|
local function select_install_rm_cmd(cache_folder, project_name)
|
||||||
|
|
@ -122,7 +113,6 @@ local function select_mv_cmd(compile_location, parser_lib_name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function run_install(cache_folder, package_path, lang, repo, with_sync)
|
local function run_install(cache_folder, package_path, lang, repo, with_sync)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue