Added wasm target
This commit is contained in:
@ -5,5 +5,6 @@ type Arch uint8
|
||||
const (
|
||||
UnknownArch Arch = iota
|
||||
ARM
|
||||
WASM
|
||||
X86
|
||||
)
|
||||
|
@ -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:
|
||||
|
@ -6,5 +6,6 @@ const (
|
||||
UnknownOS OS = iota
|
||||
Linux
|
||||
Mac
|
||||
Web
|
||||
Windows
|
||||
)
|
||||
|
Reference in New Issue
Block a user