Skip to content

Commit 5657fb1

Browse files
committed
wasm: reintroduce "coroutines" support
1 parent 9005d26 commit 5657fb1

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

compileopts/target.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,11 @@ func LoadTarget(options *Options) (*TargetSpec, error) {
208208
if err != nil {
209209
return nil, err
210210
}
211+
212+
if spec.Scheduler == "asyncify" {
213+
spec.ExtraFiles = append(spec.ExtraFiles, "src/internal/task/task_asyncify_wasm.S")
214+
}
215+
211216
return spec, nil
212217
}
213218

targets/wasi.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
"--export-dynamic",
1515
"--no-demangle"
1616
],
17-
"extra-files": [
18-
"src/internal/task/task_asyncify_wasm.S"
19-
],
2017
"emulator": ["wasmtime"],
2118
"wasm-abi": "generic"
2219
}

targets/wasm.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
"--stack-first",
1414
"--no-demangle"
1515
],
16-
"extra-files": [
17-
"src/internal/task/task_asyncify_wasm.S"
18-
],
1916
"emulator": ["node", "targets/wasm_exec.js"],
2017
"wasm-abi": "js"
2118
}

0 commit comments

Comments
 (0)