From 6781ff226d8d2f9b49a61eaa8de40be68fea7037 Mon Sep 17 00:00:00 2001 From: Zxilly Date: Sat, 24 Aug 2024 08:39:47 +0000 Subject: [PATCH] misc/wasm: move wasm runtime files to lib/wasm Fixes #68024 Change-Id: I730c3ecfb14472f3eea3895c2a4d5e1d4ac146f5 GitHub-Last-Rev: 4242f360103ba1fd1f4085b8257ccce0f07a68e5 GitHub-Pull-Request: golang/go#68840 Reviewed-on: https://go-review.googlesource.com/c/go/+/604696 Reviewed-by: Cherry Mui Reviewed-by: Dmitri Shuralyov Reviewed-by: Johan Brandhorst-Satzkorn LUCI-TryBot-Result: Go LUCI Auto-Submit: Dmitri Shuralyov Reviewed-by: Dmitri Shuralyov --- doc/next/7-ports.md | 3 +++ {misc => lib}/wasm/go_js_wasm_exec | 0 {misc => lib}/wasm/go_wasip1_wasm_exec | 0 {misc => lib}/wasm/wasm_exec.js | 0 {misc => lib}/wasm/wasm_exec_node.js | 0 misc/wasm/wasm_exec.html | 2 +- src/cmd/distpack/test.go | 5 +++++ src/cmd/go/internal/toolchain/select.go | 20 +++++++++++++------ ...lchain_v0.0.1-go1.999testmod.aix-ppc64.txt | 1 + ...hain_v0.0.1-go1.999testmod.android-386.txt | 1 + ...in_v0.0.1-go1.999testmod.android-amd64.txt | 1 + ...hain_v0.0.1-go1.999testmod.android-arm.txt | 1 + ...in_v0.0.1-go1.999testmod.android-arm64.txt | 1 + ...ain_v0.0.1-go1.999testmod.darwin-amd64.txt | 1 + ...ain_v0.0.1-go1.999testmod.darwin-arm64.txt | 1 + ..._v0.0.1-go1.999testmod.dragonfly-amd64.txt | 1 + ...hain_v0.0.1-go1.999testmod.freebsd-386.txt | 1 + ...in_v0.0.1-go1.999testmod.freebsd-amd64.txt | 1 + ...hain_v0.0.1-go1.999testmod.freebsd-arm.txt | 1 + ...in_v0.0.1-go1.999testmod.freebsd-arm64.txt | 1 + ..._v0.0.1-go1.999testmod.freebsd-riscv64.txt | 1 + ...in_v0.0.1-go1.999testmod.illumos-amd64.txt | 1 + ...lchain_v0.0.1-go1.999testmod.ios-amd64.txt | 1 + ...lchain_v0.0.1-go1.999testmod.ios-arm64.txt | 1 + ...oolchain_v0.0.1-go1.999testmod.js-wasm.txt | 1 + ...lchain_v0.0.1-go1.999testmod.linux-386.txt | 1 + ...hain_v0.0.1-go1.999testmod.linux-amd64.txt | 1 + ...lchain_v0.0.1-go1.999testmod.linux-arm.txt | 1 + ...hain_v0.0.1-go1.999testmod.linux-arm64.txt | 1 + ...in_v0.0.1-go1.999testmod.linux-loong64.txt | 1 + ...in_v0.0.1-go1.999testmod.linux-mips64x.txt | 1 + ...hain_v0.0.1-go1.999testmod.linux-mipsx.txt | 1 + ...hain_v0.0.1-go1.999testmod.linux-ppc64.txt | 1 + ...in_v0.0.1-go1.999testmod.linux-ppc64le.txt | 1 + ...in_v0.0.1-go1.999testmod.linux-riscv64.txt | 1 + ...hain_v0.0.1-go1.999testmod.linux-s390x.txt | 1 + ...chain_v0.0.1-go1.999testmod.netbsd-386.txt | 1 + ...ain_v0.0.1-go1.999testmod.netbsd-amd64.txt | 1 + ...chain_v0.0.1-go1.999testmod.netbsd-arm.txt | 1 + ...ain_v0.0.1-go1.999testmod.netbsd-arm64.txt | 1 + ...hain_v0.0.1-go1.999testmod.openbsd-386.txt | 1 + ...in_v0.0.1-go1.999testmod.openbsd-amd64.txt | 1 + ...hain_v0.0.1-go1.999testmod.openbsd-arm.txt | 1 + ...in_v0.0.1-go1.999testmod.openbsd-arm64.txt | 1 + ...n_v0.0.1-go1.999testmod.openbsd-mips64.txt | 1 + ...in_v0.0.1-go1.999testmod.openbsd-ppc64.txt | 1 + ..._v0.0.1-go1.999testmod.openbsd-riscv64.txt | 1 + ...lchain_v0.0.1-go1.999testmod.plan9-386.txt | 1 + ...hain_v0.0.1-go1.999testmod.plan9-amd64.txt | 1 + ...lchain_v0.0.1-go1.999testmod.plan9-arm.txt | 1 + ...in_v0.0.1-go1.999testmod.solaris-amd64.txt | 1 + ...hain_v0.0.1-go1.999testmod.windows-386.txt | 2 ++ ...in_v0.0.1-go1.999testmod.windows-amd64.txt | 2 ++ ...hain_v0.0.1-go1.999testmod.windows-arm.txt | 2 ++ ...in_v0.0.1-go1.999testmod.windows-arm64.txt | 1 + src/syscall/js/js_test.go | 2 +- 56 files changed, 74 insertions(+), 8 deletions(-) rename {misc => lib}/wasm/go_js_wasm_exec (100%) rename {misc => lib}/wasm/go_wasip1_wasm_exec (100%) rename {misc => lib}/wasm/wasm_exec.js (100%) rename {misc => lib}/wasm/wasm_exec_node.js (100%) diff --git a/doc/next/7-ports.md b/doc/next/7-ports.md index 8bea3f8fbc..2b564bf889 100644 --- a/doc/next/7-ports.md +++ b/doc/next/7-ports.md @@ -1,2 +1,5 @@ ## Ports {#ports} +### WebAssembly {#wasm} + +The support files for WebAssembly have been moved to `lib/wasm` from `misc/wasm`. diff --git a/misc/wasm/go_js_wasm_exec b/lib/wasm/go_js_wasm_exec similarity index 100% rename from misc/wasm/go_js_wasm_exec rename to lib/wasm/go_js_wasm_exec diff --git a/misc/wasm/go_wasip1_wasm_exec b/lib/wasm/go_wasip1_wasm_exec similarity index 100% rename from misc/wasm/go_wasip1_wasm_exec rename to lib/wasm/go_wasip1_wasm_exec diff --git a/misc/wasm/wasm_exec.js b/lib/wasm/wasm_exec.js similarity index 100% rename from misc/wasm/wasm_exec.js rename to lib/wasm/wasm_exec.js diff --git a/misc/wasm/wasm_exec_node.js b/lib/wasm/wasm_exec_node.js similarity index 100% rename from misc/wasm/wasm_exec_node.js rename to lib/wasm/wasm_exec_node.js diff --git a/misc/wasm/wasm_exec.html b/misc/wasm/wasm_exec.html index 72e64473eb..694b526df1 100644 --- a/misc/wasm/wasm_exec.html +++ b/misc/wasm/wasm_exec.html @@ -17,7 +17,7 @@ license that can be found in the LICENSE file. (see https://caniuse.com/#feat=textencoder) --> - +