Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logic to automatically find Graal if it's built as a sibling #390

Merged
merged 1 commit into from Aug 7, 2017

Conversation

chrisseaton
Copy link
Collaborator

No description provided.

return nil unless File.exist?("#{sibling_compiler}/mxbuild/dists/graal-compiler.jar")
return nil if Dir.exist?("#{TRUFFLERUBY_DIR}/mx.imports/binary/truffle")
sibling_compiler
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could print a note that the compiler was found but needs compiling.

@@ -146,10 +146,12 @@ $ export GRAALVM_BIN=.../graalvm-0.nn/bin/java
$ jt ruby --graal -e 'p Truffle.graal?'
```

To run with Graal built from source, set `GRAAL_HOME`.
To run with Graal built from source, set `GRAAL_HOME`. Or it will be
automatically found if it is cloned into the same directory as `truffleruby`, it
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it is built

graal_home = File.expand_path(graal_home, TRUFFLERUBY_DIR)
else
graal_home = auto_graal_home
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be a one-liner above, before the if:

graal_home ||= find_auto_graal_home

@chrisseaton chrisseaton merged commit ca2c4fa into master Aug 7, 2017
@chrisseaton chrisseaton deleted the auto-graal branch August 7, 2017 20:41
dougxc pushed a commit that referenced this pull request Sep 28, 2018
…ster

* commit '975373b6c3d4230e43f6a6b9047c0ca1f977844f':
  Increase read buffer size to increase throughput.
  Remove unused profile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants