Initial GraalVM configuration

This commit is contained in:
Michael Kebe 2021-01-19 00:31:13 +01:00
parent d50db1d671
commit 91bd304f8d
4 changed files with 1439 additions and 3 deletions

View file

@ -82,6 +82,20 @@ dependencies. If you have a recent gradle version installed, you can replace `./
./gradlew distTar
### Building a native binary with GraalVM
It is possible to build a native binary with [GraalVM](https://www.graalvm.org).
1. [Install GraalVM and setup the enviroment](https://www.graalvm.org/docs/getting-started/#install-graalvm)
2. [Install prerequisites](https://www.graalvm.org/reference-manual/native-image/#prerequisites)
2. Execute Gradle:
./gradle nativeImage
The binary is available at
build/native-image/signal-cli
## Troubleshooting
If you use a version of the Oracle JRE and get an InvalidKeyException you need to enable unlimited strength crypto. See https://stackoverflow.com/questions/6481627/java-security-illegal-key-size-or-default-parameters for instructions.