1
0
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:
Alexander Medvednikov
2019-08-17 20:21:59 +03:00
parent 60bf668281
commit 8a1324c141
5 changed files with 48 additions and 35 deletions

View File

@@ -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 {