Skip to content

Commit 742872c

Browse files
committed
Add basic bootstrapping instructions
1 parent 239e5ee commit 742872c

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

java-wasm/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
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.
2+
3+
Generate the templated sources:
4+
5+
```
6+
PRISM_EXCLUDE_PRETTYPRINT=1 PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS=1 PRISM_JAVA_BACKEND=jruby bundle exec rake templates
7+
```
8+
9+
Compile to WASM using WASI SDK version 25:
10+
11+
```
12+
make java-wasm WASI_SDK_PATH=.../wasi-sdk-25.0-arm64-macos
13+
```
14+
15+
Build the AOT-compiled machine and wrapper library:
16+
17+
```
18+
mvn -f java-wasm/pom.xml clean package
19+
```
20+
21+
This should build the chicory-wasm jar file and pass some basic tests.
22+
23+
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.

0 commit comments

Comments
 (0)