Commit f143fb13 authored by Amos Wenger's avatar Amos Wenger

Add 'Equals' for Runtime

parent 77b7685c
Pipeline #14549 passed with stage
in 11 seconds
......@@ -76,6 +76,10 @@ func (r *Runtime) Arch() string {
return "386"
}
func (r *Runtime) Equals(other *Runtime) bool {
return r.Is64 == other.Is64 && r.Platform == other.Platform
}
var cachedRuntime *Runtime
func CurrentRuntime() *Runtime {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment