Skip to content

Commit

Permalink
[GR-12989] Describe built-time dependencies of GraalVM CE.
Browse files Browse the repository at this point in the history
  • Loading branch information
ansalond committed Dec 11, 2018
1 parent 7665a06 commit b6bfe72
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions vm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ After the compilation:
- the `latest_graalvm` symbolic link points to the latest built GraalVM
- `$ mx [build-time arguments] graalvm-home` prints the path to the GraalVM home directory

Note that the build requirements of each component are specified in the README file of the corresponding repository.
For example, building the Graal compiler currently requires the `JAVA_HOME` environment variable to point to a JVMCI-enabled JDK, which can be downloaded [here](https://github.com/graalvm/openjdk8-jvmci-builder/releases) or [built from sources](https://github.com/graalvm/openjdk8-jvmci-builder).
Note that the build dependencies of each component are specified in the README file of the corresponding repository.
A common requirement is that the `JAVA_HOME` environment variable must point to the latest JVMCI-enabled JDK8 ([pre-built archives](https://github.com/graalvm/openjdk8-jvmci-builder/releases); [build instructions](https://github.com/graalvm/openjdk8-jvmci-builder)).


### Example: build the base GraalVM CE image
Expand All @@ -27,7 +27,16 @@ The base GraalVM CE image includes:
- the `polyglot` launcher
- the `libpolyglot` shared library

To build it, you can either run:
In our CI, we build it using:
- the latest JVMCI-enabled JDK8 ([pre-built archives](https://github.com/graalvm/openjdk8-jvmci-builder/releases); [build instructions](https://github.com/graalvm/openjdk8-jvmci-builder)). The `JAVA_HOME` environment variable must point to it.
- `gcc`: `4.9.1`
- `make`: `3.83`
- `binutils`: `2.23.2`
- `llvm`: `3.8` on linux; `4.0.1` on darwin

Newer versions might also work. For more details, please check the README file of each component.

To start the build, you can either run:

1.
```bash
Expand Down Expand Up @@ -134,4 +143,4 @@ $ mx --env ce build
```

## Registering custom components
Suites can register new, custom components calling`mx_sdk.register_graalvm_component()`.
Suites can register new, custom components calling`mx_sdk.register_graalvm_component()`.

0 comments on commit b6bfe72

Please sign in to comment.