mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 17:26:28 +00:00
Set proper GOOS for Windows
Signed-off-by: Mathieu Champlon <mathieu.champlon@docker.com>
This commit is contained in:
parent
9dac66b831
commit
82867aa114
5
Makefile
5
Makefile
@ -10,7 +10,12 @@ GIT_COMMIT=$(shell git rev-list -1 HEAD)
|
|||||||
GO_COMPILE=linuxkit/go-compile:a8bffe875268a973ea82e5937b0fb23a5b08cc79
|
GO_COMPILE=linuxkit/go-compile:a8bffe875268a973ea82e5937b0fb23a5b08cc79
|
||||||
|
|
||||||
LINUXKIT?=bin/linuxkit
|
LINUXKIT?=bin/linuxkit
|
||||||
|
|
||||||
|
ifeq ($(OS),Windows_NT)
|
||||||
|
GOOS?=windows
|
||||||
|
else
|
||||||
GOOS?=$(shell uname -s | tr '[:upper:]' '[:lower:]')
|
GOOS?=$(shell uname -s | tr '[:upper:]' '[:lower:]')
|
||||||
|
endif
|
||||||
GOARCH?=amd64
|
GOARCH?=amd64
|
||||||
ifneq ($(GOOS),linux)
|
ifneq ($(GOOS),linux)
|
||||||
CROSS+=-e GOOS=$(GOOS)
|
CROSS+=-e GOOS=$(GOOS)
|
||||||
|
Loading…
Reference in New Issue
Block a user