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>
21 lines
420 B
Go
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)
|
|
}
|