mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-02 08:35:07 +08:00
* 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
17 lines
587 B
TypeScript
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"],
|
|
});
|
|
});
|