diff options
author | Koichi Sasada <[email protected]> | 2023-03-01 17:07:50 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2023-03-01 17:18:43 +0900 |
commit | 0d415a322f5dd7158efcbc6c3226266e312620c7 () | |
tree | eaab15c01369b3551ca0aac179780afe09bee70b /main.c | |
parent | 40e5ee64f08c5a264b95dc2d35d5d3cbcbf858a0 (diff) |
Enable DEBUG_LOG feature on USE_RUBY_DEBUG_LOG
`ruby_set_debug_option` is needed for `RUBY_DEBUG_LOG` feature so it should be called when `USE_RUBY_DEBUG_LOG` is true.
Notes: Merged: https://.com/ruby/ruby/pull/7410
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -23,6 +23,7 @@ #ifdef HAVE_LOCALE_H #include <locale.h> #endif #if defined RUBY_DEVEL && !defined RUBY_DEBUG_ENV # define RUBY_DEBUG_ENV 1 #endif @@ -46,7 +47,7 @@ int rb_wasm_rt_start(int (main)(int argc, char **argv), int argc, char **argv); int main(int argc, char **argv) { -#ifdef RUBY_DEBUG_ENV ruby_set_debug_option(getenv("RUBY_DEBUG")); #endif #ifdef HAVE_LOCALE_H |