working link

This commit is contained in:
2026-02-21 02:18:42 -06:00
parent ede033f52e
commit 20c2576fa7
3 changed files with 76 additions and 33 deletions

View File

@@ -390,11 +390,13 @@ Build.compile_file = function(pkg, file, target, opts) {
// Layer 2: stat-based manifest probe (zero file reads on warm cache)
var mf_obj = null
var _linked = fd.is_link(setup.pkg_dir)
var _tag = _linked ? ' [linked]' : ''
if (!_opts.force) {
mf_obj = bmfst_probe(setup.cmd_str, setup.src_path)
if (mf_obj) {
if (_opts.verbose) log.build('[verbose] manifest hit: ' + file)
log.shop('manifest hit ' + file)
if (_opts.verbose) log.build(`[verbose] manifest hit: ${pkg}/${file}${_tag}`)
log.shop(`manifest hit ${pkg}/${file}${_tag}`)
return mf_obj
}
}
@@ -578,11 +580,13 @@ Build.build_module_dylib = function(pkg, file, target, opts) {
// Stat-based dylib manifest — zero file reads on warm cache
var mf_dylib = null
var _linked = fd.is_link(setup.pkg_dir)
var _tag = _linked ? ' [linked]' : ''
if (!_opts.force) {
mf_dylib = bmfst_dl_probe(setup, link_info)
if (mf_dylib) {
if (_opts.verbose) log.build('[verbose] manifest hit: ' + file)
log.shop('manifest hit ' + file)
if (_opts.verbose) log.build(`[verbose] manifest hit: ${pkg}/${file}${_tag}`)
log.shop(`manifest hit ${pkg}/${file}${_tag}`)
return mf_dylib
}
}