Use -std=c11 when building

This is needed for harfbuzz 2.0 on macOS. -std=c11 was supported as of
gcc 4.7 released in 2014. So hopefully this wont break compilation on any
systems otherwise capable of running kitty. Fixes #1196
This commit is contained in:
Kovid Goyal
2018-12-17 08:31:49 +05:30
parent f8ebba3954
commit f098e6c973

View File

@@ -190,7 +190,7 @@ def init_env(
cppflags = shlex.split(cppflags)
cflags = os.environ.get(
'OVERRIDE_CFLAGS', (
'-Wextra -Wno-missing-field-initializers -Wall -std=c99'
'-Wextra -Wno-missing-field-initializers -Wall -std=c11'
' -pedantic-errors -Werror {} {} -fwrapv {} {} -pipe {} -fvisibility=hidden'
).format(
optimize,