mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
Preserve artifacts when switching build modes (#415)
- Keep generated outputs from earlier build modes, including cache hits. - Cover WASI/native switching and document accumulated output files.
This commit is contained in:
@@ -388,7 +388,6 @@ export async function readEarlyExecutableCache(
|
||||
if (!(await fileMatches(paths.cPath, stamp.files.translationUnit.digest))) {
|
||||
await installBytes(translationUnit, paths.cPath);
|
||||
}
|
||||
await rm(paths.staleCPath, { force: true });
|
||||
if (
|
||||
ir !== null && stamp.files.ir !== null &&
|
||||
!(await fileMatches(paths.irPath, stamp.files.ir.digest))
|
||||
|
||||
Reference in New Issue
Block a user