fix(install): use std=c11

This commit is contained in:
Gabriel Holodak 2024-12-24 01:07:19 -05:00 committed by Christian Clason
parent 82939d5941
commit 0fb02ac5c3

View file

@ -92,6 +92,7 @@ function M.select_compiler_args(repo, compiler)
"/Isrc",
repo.files,
"-Os",
"/std:c11",
"/utf-8",
"/LD",
}
@ -105,6 +106,7 @@ function M.select_compiler_args(repo, compiler)
"-Isrc",
"-shared",
"-Os",
"-std=c11",
}
else
local args = {
@ -113,6 +115,7 @@ function M.select_compiler_args(repo, compiler)
"-I./src",
repo.files,
"-Os",
"-std=c11",
}
if fn.has "mac" == 1 then
table.insert(args, "-bundle")