tools: add support for .skip_should_compile_all files to ./v should-compile-all .

This commit is contained in:
Delyan Angelov 2023-08-14 18:52:30 +03:00
parent 679cbf1490
commit e446eb5953
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@ fn main() {
}
mut failed_commands := []string{}
for idx, example in files {
folder_of_example := os.dir(example)
if os.is_file(os.join_path_single(folder_of_example, '.skip_should_compile_all')) {
println('>>> skipping file: ${example}, because a `.skip_should_compile_all` file is present next to it.')
continue
}
cmd := '${os.quoted_path(@VEXE)} ${os.quoted_path(example)}'
println('> compiling ${idx + 1:4}/${files.len:-4}: ${cmd}')
if 0 != os.system(cmd) {