Skip to content

Commit 60b1046

Browse files
committed
Add necessary --initialize-at-build-time for building an image with --language:ruby
* I checked this is equivalent to --initialize-at-build-time for all classes, except for the application classes initializers which are delayed, as intended. * `org.fusesource` is part of the JLine jar.
1 parent 18c82f9 commit 60b1046

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
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

0 commit comments

Comments
 (0)