mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
tools: fix v doctor
output for missing cc
. Add a diagnostic line checking for emcc --version
too
This commit is contained in:
parent
0585d96495
commit
399159ff79
1 changed files with 2 additions and 2 deletions
|
@ -122,8 +122,8 @@ fn (mut a App) collect_info() {
|
|||
a.line('Git vroot status', a.git_info())
|
||||
a.line('.git/config present', os.is_file('.git/config').str())
|
||||
a.println('')
|
||||
|
||||
a.line('CC version', a.cmd(command: 'cc --version'))
|
||||
a.line('emcc version', a.cmd(command: 'emcc --version'))
|
||||
a.report_tcc_version('thirdparty/tcc')
|
||||
}
|
||||
|
||||
|
@ -134,7 +134,7 @@ struct CmdConfig {
|
|||
|
||||
fn (mut a App) cmd(c CmdConfig) string {
|
||||
x := os.execute(c.command)
|
||||
if x.exit_code < 0 {
|
||||
if x.exit_code < 0 || x.exit_code == 127 {
|
||||
return 'N/A'
|
||||
}
|
||||
if x.exit_code == 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue