diff --git a/Makefile b/Makefile index 2da5b1ce07..d3f23001c9 100644 --- a/Makefile +++ b/Makefile @@ -80,10 +80,12 @@ endif all: latest_vc latest_tcc ifdef WIN32 $(CC) $(CFLAGS) -g -std=c99 -municode -w -o $(V) $(VC)/$(VCFILE) $(LDFLAGS) - $(V) self + $(V) -o v2.exe cmd/v + move /y v2.exe v.exe else $(CC) $(CFLAGS) -g -std=gnu99 -w -o $(V) $(VC)/$(VCFILE) -lm -lpthread $(LDFLAGS) - $(V) self + $(V) -o v2.exe cmd/v + mv -f v2.exe v endif @echo "V has been successfully built" @$(V) -version