Files
scriptc/tests/harness/llvm-package-symbols.test.ts
Chris Tate 401338f437 feat(compiler): add native LLVM object emission (#242)
* feat(compiler): add native LLVM object emission

- ship the pinned macOS arm64 LLVM helper and platform package
- add assembly/object CLI outputs, caching, diagnostics, and runtime ABI checks
- validate helper artifacts through CI, packaging, docs, and differential coverage

* fix(compiler): harden native LLVM emission

* fix(compiler): harden LLVM helper packaging

* fix(compiler): stabilize LLVM helper package size

* fix(compiler): harden native helper validation

* fix(compiler): harden LLVM helper verification

* fix(compiler): harden native object emission
2026-08-27 10:30:40 -05:00

17 lines
587 B
TypeScript

import { expect, test } from "vitest";
import { validateLlvmHelperExports } from "../../scripts/llvm-package-symbols.mjs";
test("LLVM helper export validation permits Mach-O's linker-defined image header", () => {
expect(validateLlvmHelperExports(["__mh_execute_header", "_main"])).toEqual({
hasMain: true,
unexpected: [],
});
});
test("LLVM helper export validation requires main and rejects LLVM globals", () => {
expect(validateLlvmHelperExports(["__mh_execute_header", "_ZN4llvm4errsEv"])).toEqual({
hasMain: false,
unexpected: ["_ZN4llvm4errsEv"],
});
});