github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/config_supported.go (about)

     1  // Note: The build constraints here are about the compiler, which is more
     2  // narrow than the architectures supported by the assembler.
     3  //
     4  // Constraints here must match platform.CompilerSupported.
     5  //
     6  // Meanwhile, users who know their runtime.GOOS can operate with the compiler
     7  // may choose to use NewRuntimeConfigCompiler explicitly.
     8  //go:build (amd64 || arm64) && (darwin || linux || freebsd || windows)
     9  
    10  package wazero
    11  
    12  func newRuntimeConfig() RuntimeConfig {
    13  	return NewRuntimeConfigCompiler()
    14  }