From a51e1cd682daeb76f201e62eaedcf6d51a18cffe Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 25 Jan 2022 15:44:38 +0900 Subject: [PATCH] enable `RUBY_ON_BUG` on release build [Feature #18483] --- vm_dump.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/vm_dump.c b/vm_dump.c index a98f5aacee..a8bfbe97f2 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -1008,7 +1008,6 @@ rb_dump_machine_register(const ucontext_t *ctx) void rb_vm_bugreport(const void *ctx) { -#if RUBY_DEVEL const char *cmd = getenv("RUBY_ON_BUG"); if (cmd) { char buf[0x100]; @@ -1018,7 +1017,6 @@ rb_vm_bugreport(const void *ctx) snprintf(buf, sizeof(buf), "Launching RUBY_ON_BUG command failed."); } } -#endif #ifdef __linux__ # define PROC_MAPS_NAME "/proc/self/maps"