mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
os.exec: return ?string instead of string
This commit is contained in:
parent
1470b3da11
commit
28147c0930
6 changed files with 91 additions and 70 deletions
|
@ -261,7 +261,10 @@ fn build_thirdparty_obj_file(flag string) {
|
|||
}
|
||||
}
|
||||
cc := if os.user_os() == 'windows' { 'gcc' } else { 'cc' } // TODO clang support on Windows
|
||||
res := os.exec('$cc -fPIC -c -o $obj_path $cfiles')
|
||||
res := os.exec('$cc -fPIC -c -o $obj_path $cfiles') or {
|
||||
panic(err)
|
||||
return // TODO remove return
|
||||
}
|
||||
println(res)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue