Build JitVm only with evmjit tag (go build -tags evmjit)

This commit is contained in:
Paweł Bylica 2015-01-14 14:24:27 +01:00
parent 8e9db3e1bc
commit 176b88a84e
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,5 @@
// +build evmjit
package vm
import "math/big"

10
vm/vm_jit_fake.go Normal file
View file

@ -0,0 +1,10 @@
// +build !evmjit
package vm
import "fmt"
func NewJitVm(env Environment) VirtualMachine {
fmt.Printf("Warning! EVM JIT not enabled.\n")
return NewDebugVm(env)
}