@@ -19,6 +19,16 @@ fn v_doctor() {
1919 }
2020}
2121
22+ fn build_v_with_prealloc() {
23+ println('### Build v with prealloc')
24+ exec('v - cg - cstrict - o vstrict1 cmd/ v')
25+ exec('./vstrict1 - o vprealloc - prealloc cmd/ v')
26+ exec('./vprealloc run examples/ hello_world.v')
27+ exec('./vprealloc - o v3 cmd/ v')
28+ exec('./v3 - o v4 cmd/ v')
29+ exec('./v4 - d debug_malloc - d debug_realloc - o vdebug1 cmd/ v')
30+ }
31+
2232fn verify_v_test_works() {
2333 println('### Verify v test')
2434 exec('echo \$VFLAGS')
@@ -63,13 +73,14 @@ fn build_examples() {
6373}
6474
6575const all_tasks = {
66- 'v_doctor': Task{v_doctor, 'Run v doctor'}
67- 'verify_v_test_works': Task{verify_v_test_works, 'Verify that v test works'}
68- 'build_fast_script': Task{build_fast_script, 'Check that building fast.v works'}
69- 'check_math': Task{check_math, 'Check the `math` module works'}
70- 'check_compress': Task{check_compress, 'Check the `compress` module works'}
71- 'run_essential_tests': Task{run_essential_tests, 'Run only the essential tests'}
72- 'build_examples': Task{build_examples, 'Build examples'}
76+ 'v_doctor': Task{v_doctor, 'Run v doctor'}
77+ 'build_v_with_prealloc': Task{build_v_with_prealloc, 'Build V with prealloc'}
78+ 'verify_v_test_works': Task{verify_v_test_works, 'Verify that v test works'}
79+ 'build_fast_script': Task{build_fast_script, 'Check that building fast.v works'}
80+ 'check_math': Task{check_math, 'Check the `math` module works'}
81+ 'check_compress': Task{check_compress, 'Check the `compress` module works'}
82+ 'run_essential_tests': Task{run_essential_tests, 'Run only the essential tests'}
83+ 'build_examples': Task{build_examples, 'Build examples'}
7384}
7485
7586common.run(all_tasks)
0 commit comments