cleanup: fix v -N -W build-examples

This commit is contained in:
Delyan Angelov 2024-05-07 10:51:58 +03:00
parent d6d0f9b9e2
commit 2e0881742c
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
4 changed files with 5 additions and 10 deletions

View File

@ -7,7 +7,6 @@ import v.pref
import v.builder
import v.builder.cbuilder
import v.ast
import rand
import term
const base_os = pref.get_host_os()
@ -28,7 +27,6 @@ const skip_modules = [
'v.eval',
]
const is_verbose = os.getenv('VERBOSE') != ''
const diff_cmd = diff.find_working_diff_command() or { '' }
fn main() {
vexe := os.real_path(os.getenv_opt('VEXE') or { @VEXE })
@ -51,10 +49,7 @@ fn main() {
diff_modules[m] = true
summary := 'Different APIs found for module: `${m}`, between OS base: `${base_os}` and OS: `${other_os}`'
eprintln(term.header(summary, '-'))
if diff_cmd == '' {
continue
}
diff_ := diff.color_compare_strings(diff_cmd, rand.ulid(), api_base, api_os)
diff_ := diff.compare_text(api_base, api_os) or { continue }
println(diff_)
eprintln(term.h_divider('-'))
}

View File

@ -74,7 +74,6 @@ fn main() {
name: 'v'
}
posix_mode: true
disable_man: true
flags: flags
pre_execute: validate
execute: new_project
@ -92,7 +91,6 @@ fn main() {
name: 'v'
}
posix_mode: true
disable_man: true
flags: flags
pre_execute: validate
execute: init_project

View File

@ -558,7 +558,7 @@ pub fn (mut g Gen) call_expr(node ast.CallExpr, expected ast.Type, existing_rvar
}
if node.language in [.js, .wasm] {
cfn_attrs := g.table.fns[node.name].attrs
cfn_attrs := unsafe { g.table.fns[node.name].attrs }
short_name := if node.language == .js {
node.name.all_after_last('JS.')

View File

@ -3,6 +3,8 @@ import os
fn main() {
mut cmd := Command{}
cmd.disable_man = true
cmd.defaults = struct {
man: false
}
cmd.parse(os.args)
}