Skip to content

Commit 8352d16

Browse files
ansalondgilles-duboscq
authored andcommitted
Use a dedicated property file for GraalVM.
1 parent 203fcbe commit 8352d16

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

mx.truffleruby/graalvm.properties

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file contains native-image arguments needed to build truffleruby
2+
#
3+
4+
ImageName = ruby
5+
6+
Requires = tool:truffle
7+
8+
LauncherClass = org.truffleruby.launcher.RubyLauncher
9+
LauncherClassPath = languages/ruby/truffleruby-annotations.jar:languages/ruby/truffleruby-shared.jar:lib/graalvm/launcher-common.jar:lib/graalvm/truffleruby-launcher.jar
10+
11+
Args = -H:MaxRuntimeCompileMethods=5400 \
12+
-H:SubstitutionResources=org/truffleruby/aot/substitutions.json \
13+
-H:+AddAllCharsets
14+
15+
# Pass the home for context pre-initialization
16+
# ${.} expands to the destination Ruby home created by mx fetch-languages,
17+
# such as substratevm/svmbuild/native-image-root/languages/ruby.
18+
JavaArgs = -Dtruffleruby.preinitialization.home=${.} \
19+
-Dpolyglot.engine.PreinitializeContexts=ruby \
20+
-Dorg.graalvm.launcher.standalone=false

mx.truffleruby/suite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@
398398
"file:lib", # contains some results from truffleruby-cext
399399
"file:CHANGELOG.md",
400400
"file:mx.truffleruby/GraalCE_Ruby_license_3rd_party_license.txt",
401-
"file:mx.truffleruby/native-image.properties",
402401
],
402+
"native-image.properties" : ["file:mx.truffleruby/graalvm.properties"],
403403
"bin/" : [
404404
"file:bin/gem",
405405
"file:bin/irb",

0 commit comments

Comments
 (0)