diff options
author | Takashi Kokubun <[email protected]> | 2020-04-13 23:48:39 -0700 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2020-04-13 23:48:40 -0700 |
commit | f88862655270f47e4ffd84c3eb5a4d62bd99eab1 (patch) | |
tree | 11593ff6c7a30c7aeff78c97fc5302b59b8867a7 /test/lib | |
parent | 7a85d31c298a4585bed9f20214dfe0af48e4ec1f (diff) |
Fix logic to detect vs120
MJIT_CC seems not defined
https://ci.appveyor.com/project/ruby/ruby/builds/32161572/job/u5sw8yn4in87heki
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/jit_support.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb index cc101d6043..b26a5febe4 100644 --- a/test/lib/jit_support.rb +++ b/test/lib/jit_support.rb @@ -64,9 +64,9 @@ module JITSupport # # Until we figure out why, this allows us to skip testing JIT when it happens. def vs120_pdb_corrupted? - return false unless ENV.key?('APPVEYOR') && RbConfig::CONFIG['MJIT_CC'].include?('Microsoft Visual Studio 12.0') + return false unless ENV.key?('APPVEYOR') _stdout, stderr, status = eval_with_jit_without_retry('proc {}.call', verbose: 2, min_calls: 1) - !status.success? && stderr.include?('.pdb is not the pdb file that was used when this precompiled header was created, recreate the precompiled header.') + !status.success? && stderr.include?('x64-mswin64_120') && stderr.include?('.pdb is not the pdb file that was used when this precompiled header was created, recreate the precompiled header.') end def remove_mjit_logs(stderr) |