Skip to content

Commit d0197c5

Browse files
committed
[GR-27679] Fix references to deprecated libraries and headers.
PullRequest: truffleruby/2209
2 parents e27cadc + 4132e5f commit d0197c5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

doc/contributor/cexts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ not a `VALUE`.
123123

124124
`polyglot_*`
125125

126-
See [polyglot.h](https://github.com/oracle/graal/blob/master/sulong/projects/com.oracle.truffle.llvm.libraries.bitcode/include/polyglot.h) for documentation regarding the `polyglot_*` methods.
126+
See [polyglot.h](https://github.com/oracle/graal/blob/master/sulong/projects/com.oracle.truffle.llvm.libraries.graalvm.llvm/include/graalvm/llvm/polyglot.h) for documentation regarding the `polyglot_*` methods.
127127

128128

129129
##### ValueWrapper Long Representation

lib/cext/include/truffleruby/truffleruby-pre.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extern "C" {
2020

2121
#define TRUFFLERUBY
2222

23-
#include <polyglot.h>
23+
#include <graalvm/llvm/polyglot.h>
2424

2525
#include <ctype.h> // isdigit
2626

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)