summaryrefslogtreecommitdiff
path: root/ruby-runner.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-06 22:14:33 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-06 22:14:44 -0800
commitf68580890faef54a8000e3d9b79341dbd17c115e (patch)
tree5e5ede12b239c4cfea570913e08d0f1ba997bca9 /ruby-runner.c
parent50a709fb9e07f523c8a0649d3039161b77f300ad (diff)
downloadruby-f68580890faef54a8000e3d9b79341dbd17c115e.tar.gz
Stop building mjit_build_dir.so
Diffstat (limited to 'ruby-runner.c')
-rw-r--r--ruby-runner.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/ruby-runner.c b/ruby-runner.c
index d7ce511a85..bbc2b78fa0 100644
--- a/ruby-runner.c
+++ b/ruby-runner.c
@@ -57,10 +57,6 @@ main(int argc, char **argv)
PATH_SEPARATOR
EXTOUT_DIR"/"ARCH
;
-#ifndef LOAD_RELATIVE
- static const char mjit_build_dir[] = BUILDDIR"/mjit_build_dir."SOEXT;
- struct stat stbuf;
-#endif
const size_t dirsize = sizeof(builddir);
const size_t namesize = sizeof(rubypath) - dirsize;
const char *rubyname = rubypath + dirsize;
@@ -68,12 +64,6 @@ main(int argc, char **argv)
insert_env_path(LIBPATHENV, builddir, dirsize, 1);
insert_env_path("RUBYLIB", rubylib, sizeof(rubylib), 0);
-#ifndef LOAD_RELATIVE
- if (PRELOADENV[0] && stat(mjit_build_dir, &stbuf) == 0) {
- insert_env_path(PRELOADENV, mjit_build_dir, sizeof(mjit_build_dir), 1);
- setenv("MJIT_SEARCH_BUILD_DIR", "true", 0);
- }
-#endif
if (!(p = strrchr(arg0, '/'))) p = arg0; else p++;
if (strlen(p) < namesize - 1) {