From 2c9212b8b2dca30e075dc51660e653ad40b503b7 Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Tue, 23 Apr 2024 08:52:44 -0500 Subject: [PATCH] Fix dll search paths for Ruby on Windows (#140) (#141) 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@'