From 1c68b5472c827c01ba0ace59ad9d3d6eed0e9e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=B6fferlein?= Date: Tue, 11 Sep 2018 00:07:33 +0200 Subject: [PATCH] Enabled ruby_sysinit again after MSVC2017 build crashed without this. --- src/rba/rba/rba.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rba/rba/rba.cc b/src/rba/rba/rba.cc index 69fff8bca..e75d56dd4 100644 --- a/src/rba/rba/rba.cc +++ b/src/rba/rba/rba.cc @@ -1778,14 +1778,12 @@ RubyInterpreter::initialize (int &main_argc, char **main_argv, int (*main_func) argv[1] = argv1; argv[2] = argv2; -#if 0 -// According to the comments in ruby.c, this should not be required any longer: #if HAVE_RUBY_VERSION_CODE>=10900 - // Make sure we call ruby_sysinit because otherwise the program will crash + // Make sure we call ruby_sysinit because otherwise the program will crash (this + // has been observed on Windows under MSVC 2017 with Ruby 2.5.1 for example) char **argvp = argv; int argcp = argc; ruby_sysinit (&argcp, &argvp); -#endif #endif {