diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-07 04:02:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-07 04:02:14 +0000 |
commit | c818b2fcf4652869799057556fc528e02288e248 () | |
tree | dede87f6f65b41b00268768c1d18300c1ed1fc5b /ruby-runner.c | |
parent | f837601cdb32ab25f19f83f0ec2ed840ed225a83 (diff) |
ruby-runner.c: enable MJIT_SEARCH_BUILD_DIR
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ruby-runner.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -3,6 +3,8 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> #include "ruby-runner.h" @@ -57,13 +59,19 @@ main(int argc, char **argv) PATH_SEPARATOR EXTOUT_DIR"/"ARCH ; const size_t dirsize = sizeof(builddir); const size_t namesize = sizeof(rubypath) - dirsize; const char *rubyname = rubypath + dirsize; char *arg0 = argv[0], *p; insert_env_path(LIBPATHENV, builddir, dirsize, 1); insert_env_path("RUBYLIB", rubylib, sizeof(rubylib), 0); if (!(p = strrchr(arg0, '/'))) p = arg0; else p++; if (strlen(p) < namesize - 1) { |