diff options
Diffstat (limited to 'updater/versions_arm.go')
-rw-r--r-- | updater/versions_arm.go | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/updater/versions_arm.go b/updater/versions_arm.go deleted file mode 100644 index 45b53be5..00000000 --- a/updater/versions_arm.go +++ /dev/null @@ -1,28 +0,0 @@ -/* SPDX-License-Identifier: MIT - * - * Copyright (C) 2019-2020 WireGuard LLC. All Rights Reserved. - */ - -package updater - -import ( - "debug/pe" - "errors" - - "golang.org/x/sys/windows" -) - -func findArch() (string, error) { - var processMachine, nativeMachine uint16 - err := windows.IsWow64Process2(windows.CurrentProcess(), &processMachine, &nativeMachine) - if err != nil { - return "", err - } - switch nativeMachine { - case pe.IMAGE_FILE_MACHINE_ARM64: - return "arm64", nil - case pe.IMAGE_FILE_MACHINE_ARMNT: - return "arm", nil - } - return "", errors.New("Invalid GOARCH") -} |