mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: improve errors when building thirdparty .o files
This commit is contained in:
parent
44b99bc299
commit
15deaa7eb6
@ -267,6 +267,11 @@ fn build_thirdparty_obj_file(path string, moduleflags []CFlag) {
|
|||||||
verror(err)
|
verror(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if res.exit_code != 0 {
|
||||||
|
println('failed thirdparty object build cmd: $cmd')
|
||||||
|
verror(res.output)
|
||||||
|
return
|
||||||
|
}
|
||||||
println(res.output)
|
println(res.output)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -414,9 +414,15 @@ fn build_thirdparty_obj_file_with_msvc(path string, moduleflags []CFlag) {
|
|||||||
//NB: the quotes above ARE balanced.
|
//NB: the quotes above ARE balanced.
|
||||||
println('thirdparty cmd line: $cmd')
|
println('thirdparty cmd line: $cmd')
|
||||||
res := os.exec(cmd) or {
|
res := os.exec(cmd) or {
|
||||||
|
println('msvc: failed thirdparty object build cmd: $cmd')
|
||||||
verror(err)
|
verror(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if res.exit_code != 0 {
|
||||||
|
println('msvc: failed thirdparty object build cmd: $cmd')
|
||||||
|
verror(res.output)
|
||||||
|
return
|
||||||
|
}
|
||||||
println(res.output)
|
println(res.output)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user