build: support mount on windows/arm64 - all windows binaries now not cgo

This builds all windows binaries without CGO but with cmount.

cgofuse has a compile mode which works without CGO on Windows for
amd64/x86/arm64 architectures so switch to using that.
This commit is contained in:
Nick Craig-Wood
2022-04-29 18:04:21 +01:00
parent c0c5b3bc6b
commit deab86867c
3 changed files with 10 additions and 18 deletions
+4 -1
View File
@@ -265,9 +265,12 @@ func buildWindowsResourceSyso(goarch string, versionTag string) string {
"-o",
sysoPath,
}
if goarch == "amd64" {
if strings.Contains(goarch, "64") {
args = append(args, "-64") // Make the syso a 64-bit coff file
}
if strings.Contains(goarch, "arm") {
args = append(args, "-arm") // Make the syso an arm binary
}
args = append(args, jsonPath)
err = runEnv(args, nil)
if err != nil {