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