Skip to content

Commit 7b087aa

Browse files
fniephauseregon
authored andcommitted
Apply -H:±UnlockExperimentalVMOptions.
1 parent c3400a8 commit 7b087aa

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

ci.jsonnet

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,10 @@ local part_definitions = {
211211
# Same as in mx.truffleruby/native-host-inlining
212212
mx_options+:: [
213213
"--extra-image-builder-argument=env.EXTRA_IMAGE_BUILDER_ARGUMENTS",
214+
"--extra-image-builder-argument=rubyvm:-H:+UnlockExperimentalVMOptions",
214215
"--extra-image-builder-argument=rubyvm:-H:Log=HostInliningPhase,~CanonicalizerPhase,~GraphBuilderPhase",
215216
"--extra-image-builder-argument=rubyvm:-H:+TruffleHostInliningPrintExplored",
217+
"--extra-image-builder-argument=rubyvm:-H:-UnlockExperimentalVMOptions",
216218
"--extra-image-builder-argument=rubyvm:-Dgraal.LogFile=host-inlining.txt",
217219
],
218220
environment+: {

doc/contributor/native-image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ the Native Image version of TruffleRuby using a tool distributed as part of Graa
8484
the Java version of TruffleRuby from GraalVM.
8585

8686
```bash
87-
native-image -H:Name=native-ruby --language:ruby
87+
native-image -o native-ruby --language:ruby
8888
```
8989

9090
`native-ruby` is the output file name.

mx.truffleruby/native

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ GRAALVM_SKIP_ARCHIVE=true
22
DYNAMIC_IMPORTS=/tools,/compiler,/substratevm
33
COMPONENTS=TruffleRuby,suite:tools,GraalVM compiler,SubstrateVM,Truffle Macro
44
NATIVE_IMAGES=suite:sulong,lib:rubyvm
5-
EXTRA_IMAGE_BUILDER_ARGUMENTS=rubyvm:-H:BuildOutputJSONFile=native-image-build-rubyvm.json
5+
EXTRA_IMAGE_BUILDER_ARGUMENTS=rubyvm:-H:+UnlockExperimentalVMOptions rubyvm:-H:BuildOutputJSONFile=native-image-build-rubyvm.json rubyvm:-H:-UnlockExperimentalVMOptions
66
# To also create the standalone
77
INSTALLABLES=TruffleRuby
88
BUILD_TARGETS=GRAALVM,GRAALVM_STANDALONES

mx.truffleruby/native-ee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ GRAALVM_SKIP_ARCHIVE=true
22
DYNAMIC_IMPORTS=/tools,/truffleruby-enterprise,/graal-enterprise,/substratevm-enterprise,substratevm-enterprise-gcs
33
COMPONENTS=TruffleRuby,suite:tools,GraalVM enterprise compiler,Truffle enterprise,SubstrateVM Enterprise,Truffle Macro Enterprise,suite:substratevm-enterprise-gcs
44
NATIVE_IMAGES=suite:sulong,lib:rubyvm
5-
EXTRA_IMAGE_BUILDER_ARGUMENTS=rubyvm:-H:BuildOutputJSONFile=native-image-build-rubyvm.json
5+
EXTRA_IMAGE_BUILDER_ARGUMENTS=rubyvm:-H:+UnlockExperimentalVMOptions rubyvm:-H:BuildOutputJSONFile=native-image-build-rubyvm.json rubyvm:-H:-UnlockExperimentalVMOptions
66
# To also create the standalone
77
INSTALLABLES=TruffleRuby
88
BUILD_TARGETS=GRAALVM,GRAALVM_STANDALONES

mx.truffleruby/native-ee-aux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ GRAALVM_SKIP_ARCHIVE=true
22
DYNAMIC_IMPORTS=/tools,/truffleruby-enterprise,/graal-enterprise,/substratevm-enterprise
33
COMPONENTS=TruffleRuby,suite:tools,GraalVM enterprise compiler,Truffle enterprise,SubstrateVM Enterprise,Truffle Macro Enterprise
44
NATIVE_IMAGES=suite:sulong,lib:rubyvm
5-
EXTRA_IMAGE_BUILDER_ARGUMENTS=rubyvm:-H:BuildOutputJSONFile=native-image-build-rubyvm.json rubyvm:-H:+AuxiliaryEngineCache rubyvm:-H:ReservedAuxiliaryImageBytes=1073741824
5+
EXTRA_IMAGE_BUILDER_ARGUMENTS=rubyvm:-H:+UnlockExperimentalVMOptions rubyvm:-H:BuildOutputJSONFile=native-image-build-rubyvm.json rubyvm:-H:-UnlockExperimentalVMOptions rubyvm:-H:+AuxiliaryEngineCache rubyvm:-H:ReservedAuxiliaryImageBytes=1073741824
66
NATIVE_IMAGE_AUXILIARY_ENGINE_CACHE=true
77
# To also create the standalone
88
INSTALLABLES=TruffleRuby

mx.truffleruby/native-host-inlining

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ GRAALVM_SKIP_ARCHIVE=true
22
DYNAMIC_IMPORTS=/tools,/compiler,/substratevm
33
COMPONENTS=TruffleRuby,suite:tools,GraalVM compiler,SubstrateVM,Truffle Macro
44
NATIVE_IMAGES=lib:rubyvm
5-
EXTRA_IMAGE_BUILDER_ARGUMENTS=rubyvm:-H:BuildOutputJSONFile=native-image-build-rubyvm.json rubyvm:-H:Log=HostInliningPhase,~CanonicalizerPhase,~GraphBuilderPhase rubyvm:-H:+TruffleHostInliningPrintExplored rubyvm:-Dgraal.LogFile=host-inlining.txt
5+
EXTRA_IMAGE_BUILDER_ARGUMENTS=rubyvm:-H:+UnlockExperimentalVMOptions rubyvm:-H:BuildOutputJSONFile=native-image-build-rubyvm.json rubyvm:-H:Log=HostInliningPhase,~CanonicalizerPhase,~GraphBuilderPhase rubyvm:-H:+TruffleHostInliningPrintExplored rubyvm:-H:-UnlockExperimentalVMOptions rubyvm:-Dgraal.LogFile=host-inlining.txt
66
# To also create the standalone
77
INSTALLABLES=TruffleRuby
88
BUILD_TARGETS=GRAALVM,GRAALVM_STANDALONES

0 commit comments

Comments
 (0)