Merge pull request #4542 from MichaelEischer/support-armv6

Only support ARMv6 on ARM platforms
This commit is contained in:
Michael Eischer 2023-10-27 19:42:49 +02:00 committed by GitHub
commit 50ef01131a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View 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

View File

@ -125,6 +125,10 @@ func build(sourceDir, outputDir, goos, goarch string) (filename string) {
"GOOS="+goos,
"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)
err := c.Run()