blob: d783b3f822db64c554efffc4c765ad82c9dee252 [file] [log] [blame]
package impl
import (
"runtime"
"v.io/core/veyron2/services/mgmt/build"
)
func getArch() build.Architecture {
switch runtime.GOARCH {
case "386", "amd64", "arm":
return build.Architecture(runtime.GOARCH)
default:
return build.UnsupportedArchitecture
}
}
func getOS() build.OperatingSystem {
switch runtime.GOOS {
case "darwin", "linux", "windows":
return build.OperatingSystem(runtime.GOOS)
default:
return build.UnsupportedOS
}
}