Skip to content

Commit 3264355

Browse files
committed
docs: add documentation for wasm_precompile_multi usage pattern
Added commented example showing the intended (but not yet functional) pattern for using wasm_precompile_multi outputs directly with wasm_embed_aot. This documents a future improvement where wasm_precompile_multi could expose individual outputs as targets providing WasmPrecompiledInfo. Current working pattern uses individual wasm_precompile targets.
1 parent 3e753f3 commit 3264355

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tinygo/BUILD.bazel

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,21 @@ wasm_embed_aot(
148148
tags = ["manual"],
149149
)
150150

151+
# Alternative: use wasm_precompile_multi outputs (currently not functional - needs provider support)
152+
# wasm_embed_aot(
153+
# name = "file_ops_component_aot_multi",
154+
# aot_artifacts = {
155+
# "linux-x64": ":file_ops_aot_multi.linux_x64",
156+
# "linux-arm64": ":file_ops_aot_multi.linux_arm64",
157+
# "darwin-x64": ":file_ops_aot_multi.darwin_x64",
158+
# "darwin-arm64": ":file_ops_aot_multi.darwin_arm64",
159+
# "windows-x64": ":file_ops_aot_multi.windows_x64",
160+
# "portable": ":file_ops_aot_multi.pulley64",
161+
# },
162+
# component = ":file_ops_component",
163+
# tags = ["manual"],
164+
# )
165+
151166
# Test suite
152167
go_test(
153168
name = "file_ops_test",

0 commit comments

Comments
 (0)