Add LURE_ARCH variable

This commit is contained in:
Elara 2023-08-11 14:45:54 -07:00
parent f2d4d5250a
commit e7e742d98d
1 changed files with 5 additions and 1 deletions

View File

@ -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()
}