Skip to content

Commit

Permalink
Merge pull request #132 from lppedd/build/wasi
Browse files Browse the repository at this point in the history
Support the WASI target
  • Loading branch information
ftomassetti authored Dec 23, 2023
2 parents d7fd141 + 68153c1 commit a9e2cf0
Show file tree
Hide file tree
Showing 32 changed files with 834 additions and 219 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
- java: '17'
target: wasmJS
task: wasmJsTest
- java: '17'
target: WASI
task: wasmWasiTest
runs-on: ubuntu-latest
name: Build (${{ matrix.java }} / ${{ matrix.target }})
steps:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ or use the [com.strumenta.antlr-kotlin][1] plugin, which instructs ANTLR automat
## Kotlin Runtime

The Kotlin runtime for the Kotlin target is derived from the Java runtime, and is built
as a multiplatform project running on JVM, JS, WebAssembly, and Native.
as a multiplatform project running on JVM, JS, WebAssembly (including WASI), and Native.

> :warning: The Native runtime is **not** thread safe
Expand Down
1 change: 1 addition & 0 deletions antlr-kotlin-runtime/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ plugins {
strumentaMultiplatform {
applyJvm()
applyJs()
applyWasi()

// Opting-in for native targets should be explicit,
// as it makes the build and test process slower.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ package com.strumenta.antlrkotlin.runtime
*
* @author Edoardo Luppi
*/
internal expect inline fun platformGetEnv(name: String): String?
internal expect fun platformGetEnv(name: String): String?
Loading

0 comments on commit a9e2cf0

Please sign in to comment.