1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Revert "Force disable yjit on OpenBSD"

This reverts commit 119626da94.
This commit is contained in:
Aaron Patterson 2021-12-01 12:46:30 -08:00
parent 4079f0da51
commit 3b2b28d035
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6

6
ruby.c
View file

@ -1884,12 +1884,6 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)
*/
rb_warning("-K is specified; it is for 1.8 compatibility and may cause odd behavior");
#ifdef __OpenBSD__
/* Disable yjit on OpenBSD, stops --enable-all from failing with:
mmap call failed: Not supported */
opt->features.set &= ~FEATURE_BIT(yjit);
#endif
#if USE_MJIT
if (opt->features.set & FEATURE_BIT(jit)) {
opt->mjit.on = TRUE; /* set mjit.on for ruby_show_version() API and check to call mjit_init() */