diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-12-01 00:56:27 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-12-01 00:58:47 -0800 |
commit | a19d625e667024fe27dcee04dd748e914bc24762 (patch) | |
tree | 5ca8c6cec0d19cb54e8c2643d8736216bb6fd2e2 /test | |
parent | bdc62dfc8ecffd27dd5ad6756cce88eac5c993f5 (diff) |
Allow specifying arbitrary MJIT flags by --jit-debug
This is a secret feature for me. It's only for testing and any behavior
with this flag override is unsupported.
I needed this because I sometimes want to add debug options but do not
want to disable optimizations, for using Linux perf.
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 10d54550c1..abdacc508e 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -1043,6 +1043,12 @@ class TestRubyOptions < Test::Unit::TestCase assert_in_out_err([IO::NULL], success: true) end + def test_jit_debug + if JITSupport.supported? + assert_in_out_err(["--jit-debug=-O0 -O1", "--jit-verbose=2", ""], "", [], /-O0 -O1/) + end + end + private def mjit_force_enabled? |