diff options
author | Takashi Kokubun <[email protected]> | 2022-07-10 23:01:09 -0700 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2022-07-10 23:10:36 -0700 |
commit | 203801566a186b7b1cbe899a06d0832923a1bdf9 (patch) | |
tree | f6cfb454201c82d0945940abd20303b3608010e5 /test/lib | |
parent | da21a2c388852205e325b71b6400b7dd351146bb (diff) |
Fix #5872 for MJIT GitHub Actions
If you run tests with RUN_OPTS=--mjit, the test fixes in
https://github.com/ruby/ruby/pull/5872 don't work.
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/jit_support.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb index c7618e03a0..e607df4cab 100644 --- a/test/lib/jit_support.rb +++ b/test/lib/jit_support.rb @@ -96,4 +96,8 @@ module JITSupport RbConfig::CONFIG['CC'].start_with?('gcc') && stderr.include?("error trying to exec 'cc1': execvp: No such file or directory") end + + def mjit_force_enabled? + "#{RbConfig::CONFIG['CFLAGS']} #{RbConfig::CONFIG['CPPFLAGS']}".match?(/(\A|\s)-D ?MJIT_FORCE_ENABLE\b/) + end end |