Start work on C implementation of the core data types

This commit is contained in:
Kovid Goyal
2016-10-31 22:09:34 +05:30
parent 43032e96f6
commit 1f55af6691
5 changed files with 209 additions and 7 deletions

View File

@@ -25,7 +25,8 @@ def init_env():
global cflags, ldflags, cc, ldpaths
cc = os.environ.get('CC', 'gcc')
cflags = os.environ.get('OVERRIDE_CFLAGS',
'-Wall -Werror -O3 -DNDEBUG -fwrapv -fstack-protector-strong -pipe')
'-Wextra -Wno-missing-field-initializers -Wall -std=c99 -D_XOPEN_SOURCE=700'
' -pedantic-errors -Werror -O3 -DNDEBUG -fwrapv -fstack-protector-strong -pipe')
cflags = shlex.split(cflags) + shlex.split(sysconfig.get_config_var('CCSHARED'))
ldflags = os.environ.get('OVERRIDE_LDFLAGS', '-Wall -O3')
ldflags = shlex.split(ldflags)
@@ -67,4 +68,4 @@ if __name__ == '__main__':
if sys.version_info < (3, 5):
raise SystemExit('python >= 3.5 required')
init_env()
compile_c_extension('kitty/fast_data_types', 'kitty/data-types.c')
compile_c_extension('kitty/fast_data_types', 'kitty/data-types.c', 'kitty/line-buf.c')