summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2022-01-25 15:44:38 +0900
committerKoichi Sasada <ko1@atdot.net>2022-01-25 16:43:57 +0900
commita51e1cd682daeb76f201e62eaedcf6d51a18cffe (patch)
tree44a9609907d4f4070e9807698127d4ad06c78f92 /vm_dump.c
parentde678cd51e2e73c2edaced5f824e93c6a91a0f85 (diff)
downloadruby-a51e1cd682daeb76f201e62eaedcf6d51a18cffe.tar.gz
enable `RUBY_ON_BUG` on release build
[Feature #18483]
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c2
1 files changed, 0 insertions, 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"