diff --git a/src/Make.cmd b/src/Make.cmd index b2a184b822..b2b764f26d 100644 --- a/src/Make.cmd +++ b/src/Make.cmd @@ -11,6 +11,10 @@ QUOTED_GOROOT:=$(subst $(space),\ ,$(GOROOT)) include $(QUOTED_GOROOT)/src/Make.common +ifeq ($(GOOS),windows) +TARG:=$(TARG).exe +endif + PREREQ+=$(patsubst %,%.make,$(DEPS)) $(TARG): _go_.$O $(OFILES)