ci: fix makefiles
parent
6b40ead54d
commit
858161bbc4
|
@ -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
|
||||
|
|
2
Makefile
2
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"
|
||||
|
|
Loading…
Reference in New Issue