Skip to content

Commit

Permalink
Adding CC env while cross compiling for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekbaheti committed Apr 1, 2015
1 parent a1e5612 commit a8365f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/make.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const (
gaugeScreenshot = "gauge_screenshot"
deploy = "deploy"
installShellScript = "install.sh"
CC = "CC"
)

var gaugeScreenshotLocation = filepath.Join("github.com", "getgauge", "gauge_screenshot")
Expand Down Expand Up @@ -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"},
}
)

Expand Down

0 comments on commit a8365f4

Please sign in to comment.