wa-lang.org/wazero@v1.0.2/internal/engine/compiler/arch_other.go (about) 1 //go:build !amd64 && !arm64 2 3 package compiler 4 5 import ( 6 "fmt" 7 "runtime" 8 9 "wa-lang.org/wazero/internal/wazeroir" 10 ) 11 12 // archContext is empty on an unsupported architecture. 13 type archContext struct{} 14 15 // newCompiler returns an unsupported error. 16 func newCompiler(ir *wazeroir.CompilationResult, _ bool) (compiler, error) { 17 return nil, fmt.Errorf("unsupported GOARCH %s", runtime.GOARCH) 18 }