Files
scriptc/tests/harness/self-hosting-timing.ts
Chris Tate 3f66c8e20b Make LLVM the sole production backend
- 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.
2026-09-29 20:54:09 -05:00

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`);
}
}