summaryrefslogtreecommitdiff
path: root/bootstraptest/runner.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2023-12-21 14:30:55 -0800
committerTakashi Kokubun <[email protected]>2023-12-21 14:32:03 -0800
commit78b27ce62a7d6f28c73d6fb4f97b0948859be8e0 (patch)
tree137f2929b6250f68b9ea2de473755fb8f16603ee /bootstraptest/runner.rb
parentc73959cff40ba0f1d71ea6e3fce19b5f287e8494 (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-xbootstraptest/runner.rb5
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