diff options
author | Takashi Kokubun <[email protected]> | 2023-12-21 14:30:55 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-12-21 14:32:03 -0800 |
commit | 78b27ce62a7d6f28c73d6fb4f97b0948859be8e0 (patch) | |
tree | 137f2929b6250f68b9ea2de473755fb8f16603ee /bootstraptest/runner.rb | |
parent | c73959cff40ba0f1d71ea6e3fce19b5f287e8494 (diff) |
RJIT: Streamline RJIT enablement check
in bootstrap tests so that `make btest-bruby` skips the right tests.
Diffstat (limited to 'bootstraptest/runner.rb')
-rwxr-xr-x | bootstraptest/runner.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 6b5851e67a..a34527d2fa 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -789,4 +789,9 @@ def check_coredump end end +def rjit_enabled? + # Don't check `RubyVM::RJIT.enabled?`. On btest-bruby, target Ruby != runner Ruby. + ENV.fetch('RUN_OPTS', '').include?('rjit') +end + exit main |