Skip to content

Commit b0722e0

Browse files
[GR-14768] Adopt macro options changes, integrate changes from 19.
PullRequest: truffleruby/850
2 parents 968936b + 735c5d5 commit b0722e0

File tree

4 files changed

+32
-15
lines changed

4 files changed

+32
-15
lines changed

mx.truffleruby/mx_truffleruby.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,28 @@ def ruby_testdownstream_sulong(args):
118118
jt('test', 'cexts')
119119
jt('test', 'bundle')
120120

121+
mx_sdk.register_graalvm_component(mx_sdk.GraalVmLanguage(
122+
suite=_suite,
123+
name='TruffleRuby license files',
124+
short_name='rbyl',
125+
dir_name='ruby',
126+
license_files=['LICENSE_TRUFFLERUBY.txt'],
127+
third_party_license_files=['3rd_party_licenses_truffleruby.txt'],
128+
truffle_jars=[],
129+
support_distributions=[
130+
'truffleruby:TRUFFLERUBY_GRAALVM_LICENSES',
131+
],
132+
priority=5,
133+
))
134+
121135
mx_sdk.register_graalvm_component(mx_sdk.GraalVmLanguage(
122136
suite=_suite,
123137
name='TruffleRuby',
124138
short_name='rby',
125139
dir_name='ruby',
126140
standalone_dir_name='truffleruby-<version>-<graalvm_os>-<arch>',
127-
license_files=['LICENSE_TRUFFLERUBY.md'],
128-
third_party_license_files=['3rd_party_licenses_truffleruby.txt'],
141+
license_files=[],
142+
third_party_license_files=[],
129143
truffle_jars=[
130144
'truffleruby:TRUFFLERUBY',
131145
'truffleruby:TRUFFLERUBY-SHARED',
@@ -153,8 +167,8 @@ def ruby_testdownstream_sulong(args):
153167
main_class='org.truffleruby.launcher.RubyLauncher',
154168
build_args=[
155169
'--language:llvm',
156-
'--language:ruby',
157170
],
171+
language='ruby',
158172
links=['bin/<exe:ruby>'],
159173
)
160174
],

mx.truffleruby/native-image.properties

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
# This file contains native-image arguments needed to build truffleruby
22
#
33

4-
ImageName = truffleruby
5-
6-
Requires = tool:truffle tool:nfi
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
4+
Requires = language:nfi
105

116
Args = -H:MaxRuntimeCompileMethods=5400 \
127
-H:SubstitutionResources=org/truffleruby/aot/substitutions.json \

mx.truffleruby/suite.py

Lines changed: 12 additions & 4 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": "e7df682fc26830b5e5df74996c948a087c23b3be",
12+
"version": "5dc4d8b4f772e90475a00c2093846cf11b2fd480",
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": "e7df682fc26830b5e5df74996c948a087c23b3be",
22+
"version": "5dc4d8b4f772e90475a00c2093846cf11b2fd480",
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"},
@@ -379,8 +379,6 @@
379379
"file:README.md",
380380
"file:mx.truffleruby/native-image.properties",
381381
],
382-
"LICENSE_TRUFFLERUBY.md": "file:LICENCE.md",
383-
"3rd_party_licenses_truffleruby.txt": "file:3rd_party_licenses.txt",
384382
"bin/": [
385383
"file:bin/bundle",
386384
"file:bin/bundler",
@@ -479,6 +477,16 @@
479477
],
480478
},
481479

480+
"TRUFFLERUBY_GRAALVM_LICENSES": {
481+
"native": True,
482+
"platformDependent": True,
483+
"description": "TruffleRuby support distribution for the GraalVM license files",
484+
"layout": {
485+
"LICENSE_TRUFFLERUBY.txt": "file:LICENCE.md",
486+
"3rd_party_licenses_truffleruby.txt": "file:3rd_party_licenses.txt",
487+
},
488+
},
489+
482490
"TRUFFLERUBY-TEST": {
483491
"dependencies": [
484492
"org.truffleruby.test",

spec/truffle/identity_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
RUBY_VERSION.should =~ /\A\d+\.\d+\.\d+\z/
2121
end
2222

23-
it 'RUBY_ENGINE_VERSION matches /\A\d+(\.\d+)*(-rc\d+)?(\-dev)?(-\h+)?\z/' do
24-
RUBY_ENGINE_VERSION.should =~ /\A\d+(\.\d+)*(-rc\d+)?(\-dev)?(-\h+)?\z/
23+
it 'RUBY_ENGINE_VERSION matches /\A\d+(\.\d+)*(-(rc|beta\.)\d+)?(\-dev)?(-\h+)?\z/' do
24+
RUBY_ENGINE_VERSION.should =~ /\A\d+(\.\d+)*(-(rc|beta\.)\d+)?(\-dev)?(-\h+)?\z/
2525
end
2626

2727
it "RUBY_ENGINE_VERSION can be parsed as a Gem::Version" do

0 commit comments

Comments
 (0)