mirror of
https://github.com/octoleo/restic.git
synced 2024-12-22 02:48:55 +00:00
Merge pull request #4542 from MichaelEischer/support-armv6
Only support ARMv6 on ARM platforms
This commit is contained in:
commit
50ef01131a
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,
|
||||
"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()
|
||||
|
Loading…
Reference in New Issue
Block a user