wasi: remove wasm build tag

The wasm build tag together with GOARCH=arm was causing problems in the
internal/cpu package. In general, I think having two architecture build
tag will only cause problems (in this case, wasm and arm) so I've
removed the wasm build tag and replaced it with tinygo.wasm.

This is similar to the tinygo.riscv build tag, which is used for older
Go versions that don't yet have RISC-V support in the standard library
(and therefore pretend to be GOARCH=arm instead).
This commit is contained in:
Ayke van Laethem
2021-06-21 14:50:24 +02:00
committed by Ron Evans
parent d94f42f6e2
commit c3032660c9
11 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ func (c *Config) NeedsStackObjects() bool {
switch c.GC() {
case "conservative", "extalloc":
for _, tag := range c.BuildTags() {
if tag == "wasm" {
if tag == "tinygo.wasm" {
return true
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
// +build arm,!baremetal,!wasm arm,arm7tdmi
// +build arm,!baremetal,!tinygo.wasm arm,arm7tdmi
package runtime
@@ -1,4 +1,4 @@
// +build wasm
// +build tinygo.wasm
package runtime
+1 -1
View File
@@ -1,5 +1,5 @@
// +build gc.conservative gc.extalloc
// +build baremetal wasm
// +build baremetal tinygo.wasm
package runtime
+1 -1
View File
@@ -1,5 +1,5 @@
// +build gc.conservative gc.extalloc
// +build !baremetal,!wasm
// +build !baremetal,!tinygo.wasm
package runtime
+1 -1
View File
@@ -1,5 +1,5 @@
// +build gc.conservative gc.extalloc
// +build wasm
// +build tinygo.wasm
package runtime
+1 -1
View File
@@ -1,5 +1,5 @@
// +build gc.conservative gc.extalloc
// +build !wasm
// +build !tinygo.wasm
package runtime
@@ -1,4 +1,4 @@
// +build wasm
// +build tinygo.wasm
package runtime
+1 -1
View File
@@ -1,4 +1,4 @@
// +build wasm,wasi
// +build tinygo.wasm,wasi
package runtime
+1 -1
View File
@@ -1,6 +1,6 @@
{
"llvm-target": "wasm32--wasi",
"build-tags": ["wasm", "wasi"],
"build-tags": ["tinygo.wasm", "wasi"],
"goos": "linux",
"goarch": "arm",
"linker": "wasm-ld",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"llvm-target": "wasm32--wasi",
"build-tags": ["js", "wasm"],
"build-tags": ["tinygo.wasm"],
"goos": "js",
"goarch": "wasm",
"linker": "wasm-ld",