|
1 | | -import common { Task, exec, unset } |
| 1 | +import common { Task, exec } |
2 | 2 |
|
3 | | -// |
4 | 3 | // Shared tasks/helpers |
5 | | -// |
6 | 4 | fn all_code_is_formatted() { |
7 | 5 | if common.is_github_job { |
8 | 6 | exec('v -silent test-cleancode') |
@@ -50,10 +48,7 @@ fn build_v_with_prealloc() { |
50 | 48 | exec('./v4 -d debug_malloc -d debug_realloc -o vdebug1 cmd/v') |
51 | 49 | } |
52 | 50 |
|
53 | | -// |
54 | 51 | // TCC job tasks |
55 | | -// |
56 | | -
|
57 | 52 | fn install_dependencies_for_examples_and_tools_tcc() { |
58 | 53 | if common.is_github_job { |
59 | 54 | exec('.github/workflows/disable_azure_mirror.sh') |
@@ -133,8 +128,6 @@ fn build_fast_tcc() { |
133 | 128 | } |
134 | 129 |
|
135 | 130 | fn v_self_compilation_usecache_tcc() { |
136 | | - unset('VFLAGS') |
137 | | -
|
138 | 131 | exec('v wipe-cache') |
139 | 132 | exec('v -usecache examples/hello_world.v') |
140 | 133 | exec('./examples/hello_world') |
@@ -170,10 +163,7 @@ fn test_leak_detector_not_active_tcc() { |
170 | 163 | exec('[ "$(stat -c %s leaks.txt)" = "0" ]') |
171 | 164 | } |
172 | 165 |
|
173 | | -// |
174 | 166 | // GCC job tasks |
175 | | -// |
176 | | -
|
177 | 167 | fn all_code_is_formatted_gcc() { |
178 | 168 | all_code_is_formatted() |
179 | 169 | } |
@@ -209,8 +199,6 @@ fn v_self_compilation_gcc() { |
209 | 199 | } |
210 | 200 |
|
211 | 201 | fn v_self_compilation_usecache_gcc() { |
212 | | - unset('VFLAGS') |
213 | | -
|
214 | 202 | exec('v wipe-cache') |
215 | 203 | exec('v -usecache examples/hello_world.v') |
216 | 204 | exec('examples/hello_world') |
@@ -293,10 +281,7 @@ fn compile_vup_prod_gcc() { |
293 | 281 | exec('v -showcc -cc gcc -prod cmd/tools/vup.v') |
294 | 282 | } |
295 | 283 |
|
296 | | -// |
297 | 284 | // Clang job tasks |
298 | | -// |
299 | | -
|
300 | 285 | fn all_code_is_formatted_clang() { |
301 | 286 | all_code_is_formatted() |
302 | 287 | } |
@@ -332,8 +317,6 @@ fn v_self_compilation_clang() { |
332 | 317 | } |
333 | 318 |
|
334 | 319 | fn v_self_compilation_usecache_clang() { |
335 | | - unset('VFLAGS') |
336 | | -
|
337 | 320 | exec('v wipe-cache') |
338 | 321 | exec('v -usecache examples/hello_world.v') |
339 | 322 | exec('./examples/hello_world') |
@@ -416,9 +399,7 @@ fn native_cross_compilation_to_macos() { |
416 | 399 | exec('rm -f hw.macos') |
417 | 400 | } |
418 | 401 |
|
419 | | -// |
420 | 402 | // Collect all tasks |
421 | | -// |
422 | 403 | const all_tasks = { |
423 | 404 | 'build_v_with_prealloc': Task{build_v_with_prealloc, 'Build V with prealloc'} |
424 | 405 | // tcc tasks |
|
0 commit comments