Fix build only linux and darwin support wazergo
This commit is contained in:
parent
b1b4e6b918
commit
fe4cca6e9c
2 changed files with 2 additions and 2 deletions
18
pkg/plugins/wasip_mock.go
Normal file
18
pkg/plugins/wasip_mock.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
//go:build !linux && !darwin
|
||||
|
||||
package plugins
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/tetratelabs/wazero"
|
||||
)
|
||||
|
||||
type ContextApplier func(ctx context.Context) context.Context
|
||||
|
||||
// InstantiateHost instantiates the Host module.
|
||||
func InstantiateHost(ctx context.Context, runtime wazero.Runtime, mod wazero.CompiledModule, settings Settings) (ContextApplier, error) {
|
||||
return func(ctx context.Context) context.Context {
|
||||
return ctx
|
||||
}, nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue