v.builder: show the thirdparty object compilation commands too, when using -showcc (when the cache is empty)

This commit is contained in:
Delyan Angelov 2024-08-22 17:00:36 +03:00
parent 18f89991ef
commit 31e698f5b5
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -1107,6 +1107,9 @@ fn (mut v Builder) build_thirdparty_obj_file(mod string, path string, moduleflag
v.pref.cache_manager.mod_save(mod, '.description.txt', obj_path, '${obj_path:-30} @ ${cmd}\n') or { v.pref.cache_manager.mod_save(mod, '.description.txt', obj_path, '${obj_path:-30} @ ${cmd}\n') or {
panic(err) panic(err)
} }
if v.pref.show_cc {
println('>> OBJECT FILE compilation cmd: ${cmd}')
}
$if trace_thirdparty_obj_files ? { $if trace_thirdparty_obj_files ? {
if res.output != '' { if res.output != '' {
println(res.output) println(res.output)