Files
wazero/internal/engine/compiler/arch_other.go
Takeshi Yoneda 63f6b22311 compiler: cleanup arch specific files (#670)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2022-06-30 14:24:17 +09:00

19 lines
393 B
Go

//go:build !amd64 && !arm64
package compiler
import (
"fmt"
"runtime"
"github.com/tetratelabs/wazero/internal/wazeroir"
)
// archContext is empty on an unsupported architecture.
type archContext struct{}
// newCompiler returns an unsupported error.
func newCompiler(ir *wazeroir.CompilationResult) (compiler, error) {
return nil, fmt.Errorf("unsupported GOARCH %s", runtime.GOARCH)
}