aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.h
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-12-01 00:56:27 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2019-12-01 00:58:47 -0800
commita19d625e667024fe27dcee04dd748e914bc24762 (patch)
tree5ca8c6cec0d19cb54e8c2643d8736216bb6fd2e2 /mjit.h
parentbdc62dfc8ecffd27dd5ad6756cce88eac5c993f5 (diff)
downloadruby-a19d625e667024fe27dcee04dd748e914bc24762.tar.gz
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 'mjit.h')
-rw-r--r--mjit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mjit.h b/mjit.h
index e89a2b9a6f..ff16c0fca4 100644
--- a/mjit.h
+++ b/mjit.h
@@ -43,6 +43,8 @@ struct mjit_options {
// Disable compiler optimization and add debug symbols. It can be
// very slow.
char debug;
+ // Add arbitrary cflags.
+ char* debug_flags;
// If not 0, all ISeqs are synchronously compiled. For testing.
unsigned int wait;
// Number of calls to trigger JIT compilation. For testing.