Ensure nested CLI components are fresh

This commit is contained in:
udo
2026-07-15 00:43:23 +00:00
parent dafffb4ab6
commit ee022f0398
3 changed files with 50 additions and 6 deletions
+3 -2
View File
@@ -1612,9 +1612,10 @@ private:
}
bool stale = compiler_unit_needs_recompile(context, resolved, 0);
if(stale && compiler_request_can_serve_stale_artifact(context))
bool can_serve_stale = compiler_request_can_serve_stale_artifact(context);
if(stale && can_serve_stale)
compiler_prioritize_unit(context, resolved);
if(!file_exists_host(worker.unit_wasm_path(resolved)) || (stale && !compiler_request_can_serve_stale_artifact(context) && !compiler_unit_compile_in_progress(context, resolved)))
if(!file_exists_host(worker.unit_wasm_path(resolved)) || (stale && !can_serve_stale))
get_shared_unit(context, resolved);
size_t unit_index = 0;