Files
wazero/internal/engine/compiler/arch_other.go
Crypt Keeper d992373ea7 Moves test-only symbols out of wazero package (#597)
This moves the compiler support flag out of the public package as it was
only put there for tests. This also files modgen under the testing
subdir so that it isn't mistaken for main code.

Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-05-27 17:32:26 -07:00

21 lines
420 B
Go

//go:build !amd64 && !arm64
package compiler
import (
"fmt"
"runtime"
"github.com/tetratelabs/wazero/internal/wazeroir"
)
const isSupported = false
// 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)
}