Fix bug.
This commit is contained in:
parent
13c1e5f129
commit
c3405dcb69
|
@ -26,7 +26,11 @@ module ProcessShared
|
||||||
#
|
#
|
||||||
# Fallback to attempting to load from same directory as this file.
|
# Fallback to attempting to load from same directory as this file.
|
||||||
helper = 'process_shared/posix/helper.' + suffix
|
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)
|
if defined?(Truffle)
|
||||||
ffi_lib(File.join(::Truffle::Boot.toolchain_paths(:LD_LIBRARY_PATH), 'libgraalvm-llvm.so.1'), File.join(path, helper))
|
ffi_lib(File.join(::Truffle::Boot.toolchain_paths(:LD_LIBRARY_PATH), 'libgraalvm-llvm.so.1'), File.join(path, helper))
|
||||||
|
|
Loading…
Reference in New Issue