diff --git a/.builds/epoll.yml b/.builds/epoll.yml new file mode 100644 index 00000000..d82a7249 --- /dev/null +++ b/.builds/epoll.yml @@ -0,0 +1,14 @@ +image: archlinux +sources: +- https://git.sr.ht/~bakpakin/janet +packages: +- meson +tasks: +- build: | + meson setup build --buildtype=release + cd build + meson configure -Depoll=false + ninja + ninja test + sudo ninja install + sudo jpm --verbose install circlet diff --git a/meson.build b/meson.build index ce5d1720..6e09b77f 100644 --- a/meson.build +++ b/meson.build @@ -73,6 +73,7 @@ conf.set('JANET_NO_UMASK', not get_option('umask')) conf.set('JANET_NO_REALPATH', not get_option('realpath')) conf.set('JANET_NO_PROCESSES', not get_option('processes')) conf.set('JANET_SIMPLE_GETLINE', get_option('simple_getline')) +conf.set('JANET_EV_EPOLL', get_option('epoll')) if get_option('os_name') != '' conf.set('JANET_OS_NAME', get_option('os_name')) endif diff --git a/meson_options.txt b/meson_options.txt index 96710cfe..05e032ea 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -17,6 +17,7 @@ option('processes', type : 'boolean', value : true) option('umask', type : 'boolean', value : true) option('realpath', type : 'boolean', value : true) option('simple_getline', type : 'boolean', value : false) +option('epoll', type : 'boolean', value : false) option('recursion_guard', type : 'integer', min : 10, max : 8000, value : 1024) option('max_proto_depth', type : 'integer', min : 10, max : 8000, value : 200)