Skip to content

Commit 81d6112

Browse files
committed
Add possible workaround for bunlder gems bug.
1 parent c7fecb3 commit 81d6112

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

source/loaders/rb_loader/source/rb_loader_impl.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,21 @@ loader_impl_data rb_loader_impl_initialize(loader_impl impl, configuration confi
444444
return NULL;
445445
}
446446

447+
/* Gem add home folder if any */
448+
/*
449+
{
450+
const char * gem_home_env = getenv("GEM_HOME");
451+
452+
if (gem_home_env != NULL)
453+
{
454+
if (rb_loader_impl_execution_path(impl, gem_home_env) != 0)
455+
{
456+
log_write("metacall", LOG_LEVEL_WARNING, "Ruby GEM_HOME could not be added to execution path list");
457+
}
458+
}
459+
}
460+
*/
461+
447462
log_write("metacall", LOG_LEVEL_DEBUG, "Ruby loader initialized correctly");
448463
}
449464

0 commit comments

Comments
 (0)