Added wasm target

This commit is contained in:
2025-03-12 23:15:43 +01:00
parent 450e634d79
commit dc664dbf5a
8 changed files with 44 additions and 4 deletions

View File

@ -5,5 +5,6 @@ type Arch uint8
const (
UnknownArch Arch = iota
ARM
WASM
X86
)

View File

@ -26,6 +26,8 @@ func Reset() {
SetTargetArch(X86)
case "arm64":
SetTargetArch(ARM)
case "wasm":
SetTargetArch(WASM)
default:
SetTargetArch(UnknownArch)
}
@ -35,6 +37,8 @@ func Reset() {
TargetOS = Linux
case "darwin":
TargetOS = Mac
case "js":
TargetOS = Web
case "windows":
TargetOS = Windows
default:

View File

@ -6,5 +6,6 @@ const (
UnknownOS OS = iota
Linux
Mac
Web
Windows
)