Skip to content

Commit

Permalink
Add a new definition to build TruffleRuby from source.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Aug 16, 2023
1 parent 53a9272 commit 6b81fb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rubies/truffleruby-integration
@@ -0,0 +1,6 @@
build_package_jt() {
unset JAVA_HOME
JT_IMPORTS_DONT_ASK=true ruby tool/jt.rb build --env native --install $PREFIX_PATH
}

install_git "truffleruby-integration" "https://github.com/Shopify/truffleruby.git" "integration" jt
2 changes: 2 additions & 0 deletions test/shopify_ruby_definitions/test_ruby_versions.rb
Expand Up @@ -9,6 +9,8 @@ def test_ALL_VERSIONS
assert_operator(RubyVersions::ALL_VERSIONS.length, :>, 0)

RubyVersions::ALL_VERSIONS.each do |v|
next if v.start_with?("truffleruby")

assert_match(/\A(?:yjit\-)?\d+\.\d+\.\d+(?:\-[\w\-]+)?\z/, v)
end
end
Expand Down

0 comments on commit 6b81fb1

Please sign in to comment.