Merge branch 'native_boot'

This commit is contained in:
2026-02-22 20:48:19 -06:00
19 changed files with 59808 additions and 22461 deletions

View File

@@ -809,7 +809,7 @@ function resolve_mod_fn(path, pkg) {
if (fd.is_file(cached_mcode_path)) {
mcode_json = text(fd.slurp(cached_mcode_path))
compiled = mach_compile_mcode_bin(path, mcode_json)
put_into_cache(content_key, compiled)
if (!policy.native) put_into_cache(content_key, compiled)
return compiled
}
}
@@ -830,12 +830,14 @@ function resolve_mod_fn(path, pkg) {
mcode_json = shop_json.encode(optimized)
// Cache mcode (architecture-independent) in content-addressed store
fd.ensure_dir(global_shop_path + '/build')
fd.slurpwrite(cached_mcode_path, stone(blob(mcode_json)))
if (!policy.native) {
fd.ensure_dir(global_shop_path + '/build')
fd.slurpwrite(cached_mcode_path, stone(blob(mcode_json)))
}
// Cache mach blob
compiled = mach_compile_mcode_bin(path, mcode_json)
put_into_cache(content_key, compiled)
if (!policy.native) put_into_cache(content_key, compiled)
return compiled
}