1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

enable RUBY_ON_BUG on release build

[Feature #18483]
This commit is contained in:
Koichi Sasada 2022-01-25 15:44:38 +09:00
parent de678cd51e
commit a51e1cd682
Notes: git 2022-01-25 16:44:27 +09:00

View file

@ -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"