From a8365f4ed7e63424f35f3c92dfe9d518555f6491 Mon Sep 17 00:00:00 2001 From: prateekbaheti Date: Wed, 1 Apr 2015 17:59:44 +0530 Subject: [PATCH] Adding CC env while cross compiling for windows --- build/make.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/make.go b/build/make.go index 49875e809..04c66a291 100644 --- a/build/make.go +++ b/build/make.go @@ -46,6 +46,7 @@ const ( gaugeScreenshot = "gauge_screenshot" deploy = "deploy" installShellScript = "install.sh" + CC = "CC" ) var gaugeScreenshotLocation = filepath.Join("github.com", "getgauge", "gauge_screenshot") @@ -270,8 +271,8 @@ var ( map[string]string{GOARCH: X86_64, GOOS: darwin, CGO_ENABLED: "0"}, map[string]string{GOARCH: X86, GOOS: linux, CGO_ENABLED: "0"}, map[string]string{GOARCH: X86_64, GOOS: linux, CGO_ENABLED: "0"}, - map[string]string{GOARCH: X86, GOOS: windows, CGO_ENABLED: "0"}, - map[string]string{GOARCH: X86_64, GOOS: windows, CGO_ENABLED: "0"}, + map[string]string{GOARCH: X86, GOOS: windows, CC: "i586-mingw32-gcc", CGO_ENABLED: "1"}, + map[string]string{GOARCH: X86_64, GOOS: windows, CC: "x86_64-w64-mingw32-gcc", CGO_ENABLED: "1"}, } )