aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorRasmus Michelsen <RMichelsen@protonmail.com>2020-09-05 16:19:39 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-06 13:42:24 +0200
commitd9a7b80c7bab541083130a5ba3d4e92cf9cedf60 (patch)
tree1d268849fbc6404467ed013b50efd20487228be6 /lua
parentA few fixes (diff)
downloadnvim-treesitter-d9a7b80c7bab541083130a5ba3d4e92cf9cedf60.tar
nvim-treesitter-d9a7b80c7bab541083130a5ba3d4e92cf9cedf60.tar.gz
nvim-treesitter-d9a7b80c7bab541083130a5ba3d4e92cf9cedf60.tar.bz2
nvim-treesitter-d9a7b80c7bab541083130a5ba3d4e92cf9cedf60.tar.lz
nvim-treesitter-d9a7b80c7bab541083130a5ba3d4e92cf9cedf60.tar.xz
nvim-treesitter-d9a7b80c7bab541083130a5ba3d4e92cf9cedf60.tar.zst
nvim-treesitter-d9a7b80c7bab541083130a5ba3d4e92cf9cedf60.zip
Added changes
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/install.lua34
1 files changed, 12 insertions, 22 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua
index 04e67a63d..58abd6fe5 100644
--- a/lua/nvim-treesitter/install.lua
+++ b/lua/nvim-treesitter/install.lua
@@ -63,28 +63,19 @@ local function select_executable(executables)
end
local function select_args(repo)
- if fn.has('win32') then
- return {
- '-o',
- 'parser.so',
- '-I./src',
- repo.files,
- '-shared',
- '-Os',
- '-lstdc++',
- }
- else
- return {
- '-o',
- 'parser.so',
- '-I./src',
- repo.files,
- '-shared',
- '-Os',
- '-lstdc++',
- '-fPIC'
- }
+ local args = {
+ '-o',
+ 'parser.so',
+ '-I./src',
+ repo.files,
+ '-shared',
+ '-Os',
+ '-lstdc++',
+ }
+ if not fn.has('win32') then
+ table.insert('-fPIC')
end
+ return args
end
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
local function run_install(cache_folder, package_path, lang, repo, with_sync)