mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-02 07:43:42 +08:00
Build the bootstrap seed without the function layout
The native bootstrap compares the seed's LLVM, which the Node-hosted compiler emits, with the LLVM the native compiler emits for itself. The seed's build applied the committed function layout and the native compiler has none, so the two listed the same functions in different orders. The layout only orders functions, so the seed is built without it.
This commit is contained in:
@@ -51,6 +51,10 @@ async function main() {
|
||||
...process.env,
|
||||
SCRIPTC_NATIVE_EMIT_IR: "1",
|
||||
SCRIPTC_NATIVE_OPTIMIZATION: sanitize ? "dev" : "release",
|
||||
// The bootstrap compares the seed's LLVM with the native compiler's
|
||||
// own emission, which has no function layout. The layout only orders
|
||||
// the functions, so the seed is built without it.
|
||||
SCRIPTC_NATIVE_LAYOUT: "",
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user