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