Skip to content

Commit

Permalink
mksysconf: consistently use overriden GO{ARCH,OS}
Browse files Browse the repository at this point in the history
Fixes: 3011bd3 ("mksysconf: allow to override GO{ARCH,OS} using GO{OS,ARCH}_TARGET env vars")
  • Loading branch information
tklauser committed Sep 26, 2024
1 parent 3011bd3 commit 06b53eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mksysconf.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ func main() {
os.Exit(1)
}

vals := fmt.Sprintf("sysconf_values_%s.go", runtime.GOOS)
vals := fmt.Sprintf("sysconf_values_%s.go", goos)
// sysconf variable values are GOARCH-specific, thus write per GOARCH
zvals := fmt.Sprintf("zsysconf_values_%s_%s.go", runtime.GOOS, runtime.GOARCH)
zvals := fmt.Sprintf("zsysconf_values_%s_%s.go", goos, goarch)
if err := gensysconf(vals, zvals, goos, goarch); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
Expand Down

0 comments on commit 06b53eb

Please sign in to comment.