mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
Build JitVm only with evmjit tag (go build -tags evmjit)
This commit is contained in:
parent
8e9db3e1bc
commit
176b88a84e
2 changed files with 12 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build evmjit
|
||||||
|
|
||||||
package vm
|
package vm
|
||||||
|
|
||||||
import "math/big"
|
import "math/big"
|
||||||
|
|
|
||||||
10
vm/vm_jit_fake.go
Normal file
10
vm/vm_jit_fake.go
Normal 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)
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue