Lines 39-54
cc = meson.get_compiler('c')
Link Here
|
39 |
|
39 |
|
40 |
coroutine = get_option('with-coroutine') |
40 |
coroutine = get_option('with-coroutine') |
41 |
|
41 |
|
42 |
if coroutine == 'auto' |
42 |
coroutine = 'gthread' |
43 |
if host_machine.system() == 'windows' |
|
|
44 |
coroutine = 'gthread' |
45 |
else |
46 |
coroutine = 'ucontext' |
47 |
endif |
48 |
endif |
49 |
|
43 |
|
50 |
if coroutine == 'ucontext' |
44 |
if coroutine == 'ucontext' |
51 |
conf_data.set('WITH_UCONTEXT', true) |
45 |
conf_data.set('WITH_UCONTEXT', false) |
52 |
elif coroutine != 'gthread' |
46 |
elif coroutine != 'gthread' |
53 |
error('Unknown coroutine backend') |
47 |
error('Unknown coroutine backend') |
54 |
endif |
48 |
endif |