debug output on build

This commit is contained in:
2026-02-20 19:06:03 -06:00
parent d8df467eae
commit 0e86d6f5a1

View File

@@ -361,7 +361,7 @@ function probe_source_key(setup, file) {
var deps = null
var full_content = null
if (fd.is_file(fail_path)) return {fail: true}
if (fd.is_file(fail_path)) return {fail: true, fail_path: fail_path}
if (fd.is_file(deps_path)) {
deps = filter(array(text(fd.slurp(deps_path)), '\n'), function(p) {
@@ -403,11 +403,13 @@ Build.compile_file = function(pkg, file, target, opts) {
fd.ensure_dir(build_dir)
var probe = probe_source_key(setup, file)
var _fail_msg = null
// Check for cached failure
if (probe && probe.fail) {
if (_opts.verbose) log.build('[verbose] skipping ' + file + ' (cached failure)')
_fail_msg = probe.fail_path ? text(fd.slurp(probe.fail_path)) : null
log.shop('skip ' + file + ' (cached failure)')
if (_fail_msg) log.console(file + ':\n' + _fail_msg)
return null
}
@@ -596,9 +598,12 @@ Build.build_module_dylib = function(pkg, file, target, opts) {
var ret = null
var post_probe = null
var fallback_probe = null
var _fail_msg2 = null
if (probe && probe.fail) {
_fail_msg2 = probe.fail_path ? text(fd.slurp(probe.fail_path)) : null
log.shop('skip ' + file + ' (cached failure)')
if (_fail_msg2) log.console(file + ':\n' + _fail_msg2)
return null
}