Skip to content

Commit 4132e5f

Browse files
committed
Replace deprecated libpolyglot-mock with libgraalvm-llvm.
1 parent 7ae6d9e commit 4132e5f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/truffle/rbconfig.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ module RbConfig
128128

129129
# Link to libtruffleruby by absolute path
130130
libtruffleruby_dir = File.dirname(libtruffleruby)
131-
librubyarg = "-L#{libtruffleruby_dir} -rpath #{libtruffleruby_dir} -ltruffleruby -lpolyglot-mock"
131+
librubyarg = "-L#{libtruffleruby_dir} -rpath #{libtruffleruby_dir} -ltruffleruby -lgraalvm-llvm"
132132

133133
warnflags = warnflags.join(' ')
134134

src/main/c/cext/extconf.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ module Truffle::Platform
2424
$CFLAGS << " -DRUBY_EXPORT"
2525

2626
# Do no link against libtruffleruby for libtruffleruby itself.
27-
# We still need libtruffleruby to link against libpolyglot-mock,
27+
# We still need libtruffleruby to link against libgraalvm-llvm,
2828
# otherwise linking fails with "Undefined symbols" on macOS.
2929
if Truffle::Platform.darwin?
3030
# Set the install_name of libtruffleruby on macOS, so C exts linking to it
3131
# will know they need to look at the rpath to find it.
32-
$LIBRUBYARG = "-Wl,-install_name,@rpath/libtruffleruby.dylib -lpolyglot-mock"
32+
$LIBRUBYARG = "-Wl,-install_name,@rpath/libtruffleruby.dylib -lgraalvm-llvm"
3333
else
34-
$LIBRUBYARG = "-lpolyglot-mock"
34+
$LIBRUBYARG = "-lgraalvm-llvm"
3535
end
3636

3737
create_makefile('libtruffleruby')

0 commit comments

Comments
 (0)