This commit is contained in:
rulingcom 2024-03-02 16:25:49 +08:00
parent 13c1e5f129
commit c3405dcb69
1 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,11 @@ module ProcessShared
#
# Fallback to attempting to load from same directory as this file.
helper = 'process_shared/posix/helper.' + suffix
path = Gem::Specification.find_all.find{|g| g.name == 'process_shared'}.extensions_dir
gem_spec = Gem::Specification.find_all.find{|g| g.name == 'process_shared'}
path = gem_spec.extensions_dir
unless path.end_with?(gem_spec.full_name)
path = File.join(path, gem_spec.full_name)
end
if defined?(Truffle)
ffi_lib(File.join(::Truffle::Boot.toolchain_paths(:LD_LIBRARY_PATH), 'libgraalvm-llvm.so.1'), File.join(path, helper))