Skip to content

Commit 8e86474

Browse files
committed
[GR-15465] Add necessary --initialize-at-build-time for building an image with --language:ruby.
PullRequest: truffleruby/820
2 parents adb765d + f4e04a6 commit 8e86474

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

mx.truffleruby/native-image.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ LauncherClassPath = languages/ruby/truffleruby-annotations.jar:languages/ruby/tr
1010

1111
Args = -H:MaxRuntimeCompileMethods=5400 \
1212
-H:SubstitutionResources=org/truffleruby/aot/substitutions.json \
13-
-H:+AddAllCharsets
13+
-H:+AddAllCharsets \
14+
--initialize-at-build-time=com.oracle.graal,com.oracle.graalvm,com.oracle.svm,com.oracle.truffle,org.graalvm,org.truffleruby,org.jcodings,org.joni,jline,org.fusesource
1415

1516
JavaArgs = -Dpolyglot.engine.PreinitializeContexts=ruby \
1617
-Dorg.graalvm.launcher.relative.llvm.home=../lib/cext/sulong-libs

mx.truffleruby/suite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"name": "tools",
1010
"subdir": True,
1111
# version must always be equal to the version of the "sulong" import below
12-
"version": "636e1ca4fa50df0b7741aa1e1e12f474bee3dd5a",
12+
"version": "b20dead4f4f0527dae948767992c82d4f43837f6",
1313
"urls": [
1414
{"url": "https://github.com/oracle/graal.git", "kind": "git"},
1515
{"url": "https://curio.ssw.jku.at/nexus/content/repositories/snapshots", "kind": "binary"},
@@ -19,7 +19,7 @@
1919
"name": "sulong",
2020
"subdir": True,
2121
# version must always be equal to the version of the "tools" import above
22-
"version": "636e1ca4fa50df0b7741aa1e1e12f474bee3dd5a",
22+
"version": "b20dead4f4f0527dae948767992c82d4f43837f6",
2323
"urls": [
2424
{"url": "https://github.com/oracle/graal.git", "kind": "git"},
2525
{"url": "https://curio.ssw.jku.at/nexus/content/repositories/snapshots", "kind": "binary"},

0 commit comments

Comments
 (0)