Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 891 Bytes

building-graal.md

File metadata and controls

36 lines (25 loc) · 891 Bytes

Building Graal

If you want to build Graal from scratch to test running with Graal when developing TruffleRuby, or possibly to modify Graal or Truffle, or to use developer tools that come with Graal such as the Ideal Graph Visualizer, then you should install Graal locally.

Installing Graal with jt

Our workflow tool can install Graal automatically under the directory ../graal/compiler with:

$ jt install graal

You can then use jt to run TruffleRuby with Graal.

$ jt ruby --graal ...

Building Graal manually

If you want to build Graal by yourself, follow the instructions in the Graal repository.

https://github.com/graalvm/graal

You can then set the GRAAL_HOME environment variable to the location of the compiler directory inside the graal repository and use jt to run TruffleRuby.

$ GRAAL_HOME=.../graal/compiler jt ruby --graal ...