From 183e83d10021957c9d8ab827187abefe3e4f26d2 Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Fri, 19 Apr 2024 12:49:43 -0500 Subject: [PATCH] Fix dll search paths for Ruby on Windows (#140) Signed-off-by: Addisu Z. Taddese --- src/ign.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ign.in b/src/ign.in index b9c9136..302619c 100755 --- a/src/ign.in +++ b/src/ign.in @@ -281,6 +281,13 @@ if ARGV.include?('--versions') exit(0) end +if defined? RubyInstaller + # RubyInstaller does not search for dlls in PATH + # https://github.com/oneclick/rubyinstaller2/wiki/For-gem-developers#-dll-loading + ENV['RUBY_DLL_PATH'] = ENV['PATH'] + RubyInstaller::Runtime.enable_dll_search_paths +end + # Start Backward before loading plugins begin SharedLibInterface::Importer.dlload '@backward_library_name@'