Skip to content

Commit b1b1c21

Browse files
committed
Update Wasmtime to v37.0.1 and pass an option to enable exception handling proposal support
1 parent 9574d52 commit b1b1c21

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ To build and run the application:
3838

3939
`./gradlew wasmWasiWasmtimeRun`
4040

41-
> **Note:**
42-
> The Exception Handling proposal [is not yet implemented](https://github.com/bytecodealliance/wasmtime/issues/3427)
43-
4441
* **Run tests with Wasmtime:**
4542

4643
`./gradlew wasmWasiWasmtimeTest`

build.gradle.kts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ plugins {
2020
buildscript {
2121
dependencies {
2222
// to extract `tar.xz`
23-
classpath("org.tukaani:xz:1.9")
23+
classpath("org.tukaani:xz:1.10")
2424
}
2525
}
2626

@@ -365,7 +365,7 @@ tasks.withType<NodeJsExec>().all {
365365
}
366366

367367
// Wasmtime tasks
368-
val wasmtimeVersion = "dev" // only `dev` supports GC
368+
val wasmtimeVersion = "v37.0.1"
369369

370370
val wasmtimeSuffix = when (currentOsType) {
371371
OsType(OsName.LINUX, OsArch.X86_64) -> "x86_64-linux"
@@ -442,10 +442,8 @@ fun Project.createWasmtimeExec(
442442
val newArgs = mutableListOf<String>()
443443

444444
newArgs.add("-W")
445-
newArgs.add("function-references,gc")
445+
newArgs.add("function-references,gc,exceptions")
446446

447-
newArgs.add("-D")
448-
newArgs.add("logging=y")
449447

450448
newArgs.add("--invoke")
451449
newArgs.add(startFunction)

0 commit comments

Comments
 (0)