From a19d625e667024fe27dcee04dd748e914bc24762 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sun, 1 Dec 2019 00:56:27 -0800 Subject: 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. --- mjit.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mjit.h') 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. -- cgit v1.2.3