mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-10 08:30:39 +02:00
build/go: Set correct GOOS for Windows.
* guix/build/go-build-system.scm (setup-go-environment): When building for windows override the inherited GOOS and set it to 'windows'. Change-Id: I310aa490bb010370112cfa00c69df2d36387c323 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
7b1dccdf45
commit
178a45bc72
1 changed files with 5 additions and 2 deletions
|
@ -182,8 +182,11 @@ dependencies, so it should be self-contained."
|
|||
;; that Guix targets.
|
||||
(setenv "GOARCH" (or goarch
|
||||
(getenv "GOHOSTARCH")))
|
||||
(setenv "GOOS" (or goos
|
||||
(getenv "GOHOSTOS")))
|
||||
(setenv "GOOS" (cond ((and goos
|
||||
(string=? "mingw" goos))
|
||||
"windows")
|
||||
(goos goos)
|
||||
(else (getenv "GOHOSTOS"))))
|
||||
(match goarch
|
||||
("arm"
|
||||
(setenv "GOARM" "7"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue