mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-23 06:10:02 +08:00
- Remove C emission, debugging options, and automatic backend fallback. - Complete LLVM lowering and native bootstrap coverage across supported targets. - Link executables and libraries with precompiled C runtime packs, including iOS and Android.
10 lines
316 B
TypeScript
10 lines
316 B
TypeScript
export async function bootstrapStep<T>(name: string, work: () => Promise<T>): Promise<T> {
|
|
console.log(`bootstrap: ${name}`);
|
|
const started = performance.now();
|
|
try {
|
|
return await work();
|
|
} finally {
|
|
console.log(`bootstrap: ${name} took ${((performance.now() - started) / 1000).toFixed(1)}s`);
|
|
}
|
|
}
|