mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
tools: support module no_main
based examples in v should-compile-all
This commit is contained in:
parent
7d60ce0061
commit
9062d76bb4
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ fn main() {
|
|||
backend_options = '-b js'
|
||||
}
|
||||
lines := os.read_lines(example)!#[..50].filter(it.starts_with('module'))
|
||||
if lines.len > 0 && lines[0] != 'module main' {
|
||||
if lines.len > 0 && lines[0] !in ['module main', 'module no_main'] {
|
||||
log.info('>>> skipping non main module file: ${example}')
|
||||
skipped_files << example
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue