2019-07-17 20:11:53 +02:00
|
|
|
CC ?= cc
|
2021-09-28 10:38:33 +02:00
|
|
|
VFLAGS ?=
|
2019-07-17 20:11:53 +02:00
|
|
|
|
2021-09-04 13:32:42 +02:00
|
|
|
all:
|
|
|
|
rm -rf vc/
|
|
|
|
git clone --depth 1 --quiet https://github.com/vlang/vc
|
2021-09-28 10:42:14 +02:00
|
|
|
$(CC) -std=gnu11 -w -I ./thirdparty/stdatomic/nix -o v1 vc/v.c -lm -lexecinfo -lpthread
|
2021-09-28 10:38:33 +02:00
|
|
|
./v1 -no-parallel -o v2 $(VFLAGS) cmd/v
|
|
|
|
./v2 -o v $(VFLAGS) cmd/v
|
|
|
|
rm -rf v1 v2 vc/
|
2019-08-16 08:25:10 +02:00
|
|
|
@echo "V has been successfully built"
|
2022-01-18 16:25:11 +01:00
|
|
|
./v run ./cmd/tools/detect_tcc.v
|