mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
tools: add support for .skip_should_compile_all
files to ./v should-compile-all .
This commit is contained in:
parent
679cbf1490
commit
e446eb5953
2 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,11 @@ fn main() {
|
||||||
}
|
}
|
||||||
mut failed_commands := []string{}
|
mut failed_commands := []string{}
|
||||||
for idx, example in files {
|
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)}'
|
cmd := '${os.quoted_path(@VEXE)} ${os.quoted_path(example)}'
|
||||||
println('> compiling ${idx + 1:4}/${files.len:-4}: ${cmd}')
|
println('> compiling ${idx + 1:4}/${files.len:-4}: ${cmd}')
|
||||||
if 0 != os.system(cmd) {
|
if 0 != os.system(cmd) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue