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).
Этот коммит содержится в:
родитель
d94f42f6e2
коммит
c3032660c9
11 изменённых файлов: 11 добавлений и 11 удалений
|
@ -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,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,5 +1,5 @@
|
|||
// +build gc.conservative gc.extalloc
|
||||
// +build baremetal wasm
|
||||
// +build baremetal tinygo.wasm
|
||||
|
||||
package runtime
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// +build gc.conservative gc.extalloc
|
||||
// +build !baremetal,!wasm
|
||||
// +build !baremetal,!tinygo.wasm
|
||||
|
||||
package runtime
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// +build gc.conservative gc.extalloc
|
||||
// +build wasm
|
||||
// +build tinygo.wasm
|
||||
|
||||
package runtime
|
||||
|
||||
|
|
|
@ -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,4 +1,4 @@
|
|||
// +build wasm,wasi
|
||||
// +build tinygo.wasm,wasi
|
||||
|
||||
package runtime
|
||||
|
||||
|
|
|
@ -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,6 +1,6 @@
|
|||
{
|
||||
"llvm-target": "wasm32--wasi",
|
||||
"build-tags": ["js", "wasm"],
|
||||
"build-tags": ["tinygo.wasm"],
|
||||
"goos": "js",
|
||||
"goarch": "wasm",
|
||||
"linker": "wasm-ld",
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче