mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: make exec() return ?Result with exit code and output
This commit is contained in:
@@ -261,7 +261,7 @@ fn build_thirdparty_obj_file(flag string) {
|
||||
res := os.exec('$cc -fPIC -c -o $obj_path $cfiles') or {
|
||||
panic(err)
|
||||
}
|
||||
println(res)
|
||||
println(res.output)
|
||||
}
|
||||
|
||||
fn os_name_to_ifdef(name string) string {
|
||||
|
||||
Reference in New Issue
Block a user