-
Notifications
You must be signed in to change notification settings - Fork 0
/
z.yaml
53 lines (52 loc) · 1.18 KB
/
z.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
default: v
shell: zsh
tasks:
v: source ~/.zsh/commands.zsh && VMASTER=$VMASTER v-wrapper $@
sync: git sync && v self
self: v self
check: v -check-syntax $@
vmaster:
- make latest_vc latest_tcc
- clang -o vmaster vc/v.c
vexe:
- vmaster -os windows -o v.exe self
repair:
- z vmaster
- cp vmaster v
build:
run: v $@
args:
default: main.v
tasks:
fmt: v cmd/tools/vfmt.v
debug.fmt: z build fmt && v fmt $@
run: v run $@
main: v main.v
mainc: v main.v -o main.c
test:
run: v test $@
tasks:
fmt:
v test vlib/v/fmt/fmt_test.v
fmt-keep:
v test vlib/v/fmt/fmt_keep_test.v
fmt-all: |
z test fmt
z test fmt-keep
checker: z test compiler errors
checker.write:
run: v $1 2> "$(echo $1 | sed 's/\.vv/.out/g')" || true
compiler:
run: v test vlib/v/tests
tasks:
errors: v test vlib/v/compiler_errors_test.v
check-md: v check-md .
rm.tmp: rm **/__vtool_tmp__.*
fmt:
run: v fmt $@
tasks:
cleancode: v test-cleancode -fix
inspect.ast: vspect ast
inspect.tokens: vspect tokens
ast: z inspect.ast
tokens: z inspect.tokens