Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 912 Bytes

File metadata and controls

29 lines (18 loc) · 912 Bytes

This dir contains the chicory-prism artifact, a version of prism compiled to WASM and then AOT compiled to JVM bytecode by the Chicory project.

Building

Generate the templated sources:

PRISM_EXCLUDE_PRETTYPRINT=1 PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS=1 PRISM_JAVA_BACKEND=jruby bundle exec rake templates

Compile to WASM using WASI SDK version 25:

make java-wasm WASI_SDK_PATH=.../wasi-sdk-25.0-arm64-macos

Build the AOT-compiled machine and wrapper library:

mvn -f java-wasm/pom.xml clean package

This should build the chicory-wasm jar file and pass some basic tests.

The jar will be under java-wasm/target/chicory-prism-#####-SNAPSHOT.jar or can be installed by using install instead of pacakge in the mvn command line above.

Releasing

Pass -Prelease to enable release plugins for Maven Central (optional for snapshots) and run the deploy target for mvn.