Skip to content

Commit 66e282d

Browse files
feat(treesitter): add missing args for some compilers
1 parent b5e4de8 commit 66e282d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/orgmode/utils/treesitter/install.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ function M.select_compiler_args(compiler)
165165
'src/parser.c',
166166
'src/scanner.c',
167167
'-Os',
168+
'/std:c11',
169+
'/utf-8',
168170
'/LD',
169171
}
170172
elseif string.match(compiler, 'zig$') or string.match(compiler, 'zig.exe$') then
@@ -178,6 +180,7 @@ function M.select_compiler_args(compiler)
178180
'-Isrc',
179181
'-shared',
180182
'-Os',
183+
'-std=c11',
181184
}
182185
else
183186
local args = {
@@ -187,6 +190,7 @@ function M.select_compiler_args(compiler)
187190
'src/parser.c',
188191
'src/scanner.c',
189192
'-Os',
193+
'-std=c11',
190194
}
191195
if vim.fn.has('mac') == 1 then
192196
table.insert(args, '-bundle')

0 commit comments

Comments
 (0)