Skip to content

Commit

Permalink
Use viceroy for armv7 builds (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
kminehart authored Aug 24, 2023
1 parent 36bb347 commit bc2f2a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions containers/build_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ type CompileBackendOpts struct {
}

func goBuildImage(distro executil.Distribution, opts *executil.GoBuildOpts, goVersion string) string {
os, _ := executil.OSAndArch(distro)
os, arch := executil.OSAndArch(distro)

if os != "linux" {
// For arm/v7 and arm/v6 we want to use viceroy
if os != "linux" || arch == "arm" {
return ViceroyImage
}

Expand Down
4 changes: 2 additions & 2 deletions containers/build_backend_platforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ func BuildOptsDynamicARM(distro executil.Distribution, buildinfo *BuildInfo) *ex
)

return &executil.GoBuildOpts{
CC: ZigCC(distro),
CXX: ZigCXX(distro),
// CC: ZigCC(distro),
// CXX: ZigCXX(distro),
ExperimentalFlags: []string{},
OS: os,
Arch: "arm",
Expand Down

0 comments on commit bc2f2a1

Please sign in to comment.