Skip to content

Commit 6b81fb1

Browse files
committed
Add a new definition to build TruffleRuby from source.
1 parent 53a9272 commit 6b81fb1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

rubies/truffleruby-integration

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build_package_jt() {
2+
unset JAVA_HOME
3+
JT_IMPORTS_DONT_ASK=true ruby tool/jt.rb build --env native --install $PREFIX_PATH
4+
}
5+
6+
install_git "truffleruby-integration" "https://github.com/Shopify/truffleruby.git" "integration" jt

test/shopify_ruby_definitions/test_ruby_versions.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ def test_ALL_VERSIONS
99
assert_operator(RubyVersions::ALL_VERSIONS.length, :>, 0)
1010

1111
RubyVersions::ALL_VERSIONS.each do |v|
12+
next if v.start_with?("truffleruby")
13+
1214
assert_match(/\A(?:yjit\-)?\d+\.\d+\.\d+(?:\-[\w\-]+)?\z/, v)
1315
end
1416
end

0 commit comments

Comments
 (0)