]> Cypherpunks repositories - gostls13.git/commitdiff
Make.inc: make GOOS detection work on windows
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 20 Sep 2010 05:19:13 +0000 (15:19 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 20 Sep 2010 05:19:13 +0000 (15:19 +1000)
R=rsc, Joe Poirier, r
CC=golang-dev
https://golang.org/cl/2248041

src/Make.inc

index aa20e4c70703d304b430495c71c144be72890e16..3544f26ca4018865b044c983a878766116b603a7 100644 (file)
@@ -22,7 +22,7 @@ endif
 GOROOT_FINAL?=$(GOROOT)
 
 ifeq ($(GOOS),)
-GOOS:=${shell uname | tr A-Z a-z}
+GOOS:=${shell uname | tr A-Z a-z | sed 's/mingw/windows/; s/windows.*/windows/'}
 endif
 
 ifeq ($(GOOS),darwin)