fix error

This commit is contained in:
邱博亞 2023-04-08 15:22:54 +08:00
parent 9ef0acb093
commit 857bb2ae85
1 changed files with 5 additions and 2 deletions

View File

@ -31,8 +31,11 @@ module ProcessShared
File.exists?(File.join(path, helper)) File.exists?(File.join(path, helper))
end end
ffi_lib File.join(path, helper) if defined?(Truffle)
ffi_lib(File.join(::Truffle::Boot.toolchain_paths(:LD_LIBRARY_PATH), 'libgraalvm-llvm.so.1'), File.join(path, helper))
else
ffi_lib File.join(path, helper)
end
[:o_rdwr, [:o_rdwr,
:o_creat, :o_creat,
:o_excl, :o_excl,