Commit a5096157 authored by Florian Fischer's avatar Florian Fischer
Browse files

add async_lib_try_syscall support

parent 5f308478
......@@ -12,8 +12,21 @@ add_project_arguments(
'-D_GNU_SOURCE',
language: 'c'
)
conf_data = configuration_data()
option_async_io = get_option('async_io')
conf_data.set('USE_ASYNC_IO', option_async_io)
option_try_syscall = get_option('try_syscall')
if option_try_syscall
if not option_async_io
error('try_syscall defined without async_io')
endif
emper_proj = subproject('emper', default_options: ['async_lib=true', 'async_lib_try_syscall=true'])
else
emper_proj = subproject('emper', default_options: ['async_lib=true'])
endif
emper_proj = subproject('emper', default_options: ['async_lib=true'])
emper_dep = emper_proj.get_variable('emper_dep')
dependencies = [emper_dep]
......@@ -21,8 +34,6 @@ dependencies = [emper_dep]
run_target('iwyu',
command: 'tools/check-iwyu')
conf_data = configuration_data()
conf_data.set('USE_ASYNC_IO', get_option('use_async_io'))
subdir('src')
subdir('test')
option('use_async_io', type: 'boolean', value: true)
option('async_io', type: 'boolean', value: true)
option('try_syscall', type: 'boolean', value: true)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment