mirror of
https://github.com/octoleo/restic.git
synced 2024-11-24 05:37:37 +00:00
Only support ARMv6 on ARM platforms
Go 1.21 has switched the default from GOARM=5 to GOARM=7. So far there have been complaints from Raspberry Pi 1 users, as the first raspberry pi version only supports ARMv6. Exclude older ARM versions as these are likely not relevant (rest-server also only supports ARMv6/7) and enforce the use of software floating point emulation.
This commit is contained in:
parent
550be5c1e9
commit
5166bde386
6
changelog/unreleased/issue-4540
Normal file
6
changelog/unreleased/issue-4540
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Change: Require at least ARMv6 for ARM binaries
|
||||||
|
|
||||||
|
The official release binaries of restic now require at least ARMv6 support for ARM platforms.
|
||||||
|
|
||||||
|
https://github.com/restic/restic/issues/4540
|
||||||
|
https://github.com/restic/restic/pull/4542
|
@ -125,6 +125,10 @@ func build(sourceDir, outputDir, goos, goarch string) (filename string) {
|
|||||||
"GOOS="+goos,
|
"GOOS="+goos,
|
||||||
"GOARCH="+goarch,
|
"GOARCH="+goarch,
|
||||||
)
|
)
|
||||||
|
if goarch == "arm" {
|
||||||
|
// the raspberry pi 1 only supports the ARMv6 instruction set
|
||||||
|
c.Env = append(c.Env, "GOARM=6")
|
||||||
|
}
|
||||||
verbose("run %v %v in %v", "go", c.Args, c.Dir)
|
verbose("run %v %v in %v", "go", c.Args, c.Dir)
|
||||||
|
|
||||||
err := c.Run()
|
err := c.Run()
|
||||||
|
Loading…
Reference in New Issue
Block a user