mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
compiler: update & enable cflag error (#2420)
* merge master * update & enable cflag error
This commit is contained in:
parent
22c7438795
commit
b51b8858d6
2 changed files with 6 additions and 7 deletions
|
@ -126,12 +126,9 @@ fn (table mut Table) parse_cflag(cflag string, mod string) ?bool {
|
|||
index = -1
|
||||
}
|
||||
if (name in ['-I', '-l', '-L']) && value == '' {
|
||||
if name == '-I' || name == '-L' {
|
||||
return error('bad #flag `$flag_orig`: missing path after `-I`')
|
||||
} else if name == '-l' {
|
||||
return error('bad #flag `$flag_orig`: missing library name after `-l`')
|
||||
}
|
||||
}
|
||||
hint := if name == '-l' { 'library name' } else { 'path' }
|
||||
return error('bad #flag `$flag_orig`: missing $hint after `$name`')
|
||||
}
|
||||
cf := CFlag{
|
||||
mod: mod,
|
||||
os: fos,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue