feat: move corpus to library
Test / test (push) Failing after 1m38s

This commit is contained in:
alexm committed 2026-10-06 10:27:46 -04:00
1 parent 5b8b079165
commit cae5cff55a
1350 files changed
+197 -941995

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@
/**
* Turn godbolt's saved answers into x86-64 panes.
*
* For every program in mojo/local/ that has a golden with assembly (the header
* For every program in library/mojo/local/ that has a golden with assembly (the header
* says `# mode: asm` or `# mode: both`), find the function the exercise is
* about, translate it to the model machine's syntax the way "Send to x86-64
* pane" does (src/mojo/att.ts), and write src/mojo/generated/listings.ts. The
@@ -115,7 +115,7 @@ async function main() {
process.exit(1);
}
const mods = { forSimulator: att.forSimulator, simulatorSetup: att.simulatorSetup, listingFunctions: godbolt.listingFunctions };
const localDir = path.join(ROOT, 'mojo/local'), goldenDir = path.join(ROOT, 'mojo/golden');
const localDir = path.join(ROOT, 'library/mojo/local'), goldenDir = path.join(ROOT, 'library/mojo/golden');
const named = process.argv.slice(2).filter((a) => !a.startsWith('-'));
const listings = {};
for (const f of fs.readdirSync(localDir).filter((x) => x.endsWith('.mojo')).sort()) {