Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Florian Fischer
emper-echo-server
Commits
a5096157
Commit
a5096157
authored
Oct 27, 2020
by
Florian Fischer
Browse files
add async_lib_try_syscall support
parent
5f308478
Changes
2
Show whitespace changes
Inline
Side-by-side
meson.build
View file @
a5096157
...
...
@@ -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')
meson_options.txt
View file @
a5096157
option('use_async_io', type: 'boolean', value: true)
option('async_io', type: 'boolean', value: true)
option('try_syscall', type: 'boolean', value: true)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment