diff options
author | Takashi Kokubun <[email protected]> | 2021-12-27 22:22:09 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-27 22:22:09 -0800 |
commit | eb49aa311932665ce7ce67fb461e288f46b83c84 (patch) | |
tree | a24d683fa3b77a3b5a53aebb9adf586d3d498577 /test/lib | |
parent | a6e5d70346adc84ffde2d1c153ffb5b39dd2d388 (diff) |
Fix test_rubyoptions for MinGW (#5363)
* Fix test_rubyoptions for MinGW
follows up a74a2f456ad549025861be80f50cc3f0dd6646dd
* Require jit_support
* Fix MinGW platform
* Handle MinGW UCRT
and fix the prefix
* Make it more robust
Notes
Notes:
Merged-By: k0kubun <[email protected]>
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/jit_support.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb index 6ad68f75be..c7618e03a0 100644 --- a/test/lib/jit_support.rb +++ b/test/lib/jit_support.rb @@ -62,6 +62,11 @@ module JITSupport end && !appveyor_pdb_corrupted? && !PENDING_RUBYCI_NICKNAMES.include?(ENV['RUBYCI_NICKNAME']) end + def yjit_supported? + # e.g. x86_64-linux, x64-mswin64_140, x64-mingw32, x64-mingw-ucrt + RUBY_PLATFORM.match?(/^(x86_64|x64)-/) + end + # AppVeyor's Visual Studio 2013 / 2015 are known to spuriously generate broken pch / pdb, like: # error C2859: c:\projects\ruby\x64-mswin_120\include\ruby-2.8.0\x64-mswin64_120\rb_mjit_header-2.8.0.pdb # is not the pdb file that was used when this precompiled header was created, recreate the precompiled header. |