diff --git a/GNUmakefile b/GNUmakefile index fd876629bf..e874f5b5f8 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -84,11 +84,11 @@ endif all: latest_vc latest_tcc ifdef WIN32 - $(CC) $(CFLAGS) -std=c99 -municode -w -o $(V) $(VC)/$(VCFILE) $(LDFLAGS) + $(CC) $(CFLAGS) -std=c99 -municode -w -I ./thirdparty/stdatomic/nix -o $(V) $(VC)/$(VCFILE) $(LDFLAGS) $(V) -o v2.exe $(VFLAGS) cmd/v move /y v2.exe v.exe else - $(CC) $(CFLAGS) -std=gnu99 -w -o $(V) $(VC)/$(VCFILE) -lm -lpthread $(LDFLAGS) + $(CC) $(CFLAGS) -std=gnu99 -w -I ./thirdparty/stdatomic/nix -o $(V) $(VC)/$(VCFILE) -lm -lpthread $(LDFLAGS) $(V) -o v2.exe $(VFLAGS) cmd/v mv -f v2.exe v endif diff --git a/Makefile b/Makefile index 63c83b79b3..fe861748c3 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,6 @@ CC ?= cc all: rm -rf vc/ git clone --depth 1 --quiet https://github.com/vlang/vc - $(CC) -std=gnu11 -w -o v vc/v.c -lm -lexecinfo -I ./thirdparty/stdatomic/nix + $(CC) -std=gnu11 -w -I ./thirdparty/stdatomic/nix -o v vc/v.c -lm -lexecinfo rm -rf vc/ @echo "V has been successfully built"