mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Explain why cl.exe needs --jit-verbose=2 [ci skip]
I forgot to explain it in the previous commit git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
81de7b9e62
commit
9810c08a5d
1 changed files with 2 additions and 0 deletions
|
@ -912,6 +912,8 @@ class TestJIT < Test::Unit::TestCase
|
||||||
def assert_eval_with_jit(script, stdout: nil, success_count:, min_calls: 1, insns: [], uplevel: 3)
|
def assert_eval_with_jit(script, stdout: nil, success_count:, min_calls: 1, insns: [], uplevel: 3)
|
||||||
out, err = eval_with_jit(script, verbose: 1, min_calls: min_calls)
|
out, err = eval_with_jit(script, verbose: 1, min_calls: min_calls)
|
||||||
actual = err.scan(/^#{JIT_SUCCESS_PREFIX}:/).size
|
actual = err.scan(/^#{JIT_SUCCESS_PREFIX}:/).size
|
||||||
|
# Add --jit-verbose=2 logs for cl.exe because compiler's error message is suppressed
|
||||||
|
# for cl.exe with --jit-verbose=1. See `start_process` in mjit_worker.c.
|
||||||
if RUBY_PLATFORM.match?(/mswin/) && success_count != actual
|
if RUBY_PLATFORM.match?(/mswin/) && success_count != actual
|
||||||
_, err2 = eval_with_jit(script, verbose: 2, min_calls: min_calls)
|
_, err2 = eval_with_jit(script, verbose: 2, min_calls: min_calls)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue