diff --git a/.builds/meson_min.yml b/.builds/meson_min.yml index 0d4a34c9..3427157b 100644 --- a/.builds/meson_min.yml +++ b/.builds/meson_min.yml @@ -19,4 +19,5 @@ tasks: meson configure -Dint_types=false meson configure -Dtyped_arrays=false meson configure -Dreduced_os=true + meson configure -Dprf=false ninja # will not pass tests but should build diff --git a/meson.build b/meson.build index 2681ae49..7002b640 100644 --- a/meson.build +++ b/meson.build @@ -68,6 +68,9 @@ conf.set('JANET_RECURSION_GUARD', get_option('recursion_guard')) conf.set('JANET_MAX_PROTO_DEPTH', get_option('max_proto_depth')) conf.set('JANET_MAX_MACRO_EXPAND', get_option('max_macro_expand')) conf.set('JANET_STACK_MAX', get_option('stack_max')) +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')) 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 1d0bd77c..bfc8925f 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -12,6 +12,9 @@ option('typed_array', type : 'boolean', value : true) option('int_types', type : 'boolean', value : true) option('prf', type : 'boolean', value : true) option('net', type : 'boolean', value : true) +option('processes', type : 'boolean', value : true) +option('umask', type : 'boolean', value : true) +option('realpath', type : 'boolean', value : true) option('recursion_guard', type : 'integer', min : 10, max : 8000, value : 1024) option('max_proto_depth', type : 'integer', min : 10, max : 8000, value : 200)