Add LURE_ARCH variable
This commit is contained in:
parent
f2d4d5250a
commit
e7e742d98d
|
@ -46,7 +46,11 @@ func ARMVariant() string {
|
|||
|
||||
// Arch returns the canonical CPU architecture of the system
|
||||
func Arch() string {
|
||||
arch := runtime.GOARCH
|
||||
arch := os.Getenv("LURE_ARCH")
|
||||
if arch != "" {
|
||||
return arch
|
||||
}
|
||||
arch = runtime.GOARCH
|
||||
if arch == "arm" {
|
||||
arch = ARMVariant()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue