Skip to content

Commit 3555998

Browse files
committed
v.builder: improve diagnostic information for a failed build_thirdparty_obj_file
1 parent 4eec757 commit 3555998

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

vlib/v/builder/cc.v

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,13 @@ fn (mut v Builder) build_thirdparty_obj_file(mod string, path string, moduleflag
12481248
res := os.execute(cmd)
12491249
os.chdir(current_folder) or {}
12501250
if res.exit_code != 0 {
1251-
eprintln('failed thirdparty object build cmd:\n${cmd}')
1251+
eprintln('> Failed build_thirdparty_obj_file cmd')
1252+
eprintln('> mod: ${mod}')
1253+
eprintln('> path: ${path}')
1254+
eprintln('> cfile: ${cfile}')
1255+
eprintln('> wd before cmd: ${current_folder}')
1256+
eprintln('> getwd for cmd: ${v.pref.vroot}')
1257+
eprintln('> cmd: ${cmd}')
12521258
verror(res.output)
12531259
return
12541260
}

0 commit comments

Comments
 (0)