mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-13 00:36:28 +00:00
build: Add -arm flag to goversioninfo (#7947)
This commit is contained in:
parent
3c66d93aba
commit
06998b3484
8
build.go
8
build.go
@ -733,7 +733,13 @@ func shouldBuildSyso(dir string) (string, error) {
|
|||||||
|
|
||||||
sysoPath := filepath.Join(dir, "cmd", "syncthing", "resource.syso")
|
sysoPath := filepath.Join(dir, "cmd", "syncthing", "resource.syso")
|
||||||
|
|
||||||
if _, err := runError("goversioninfo", "-o", sysoPath); err != nil {
|
// See https://github.com/josephspurrier/goversioninfo#command-line-flags
|
||||||
|
armOption := ""
|
||||||
|
if strings.Contains(goarch, "arm") {
|
||||||
|
armOption = "-arm=true"
|
||||||
|
}
|
||||||
|
|
||||||
|
if _, err := runError("goversioninfo", "-o", sysoPath, armOption); err != nil {
|
||||||
return "", errors.New("failed to create " + sysoPath + ": " + err.Error())
|
return "", errors.New("failed to create " + sysoPath + ": " + err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user