blob: cff6ed05bf02922f07be6a706fdbe7c29bf3e940 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package impl
import (
"runtime"
"v.io/v23/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
}
}