diff options
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 |