mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Add symbols.def to link-metadata.json (#25841)
Include the Windows module definition file (symbols.def) in link-metadata.json, similar to how symbols.txt and symbols.dyn are already included for macOS and Linux. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,7 @@ console.log("Reading linker files...");
|
||||
const linkerLds = await Bun.file(join(repoRoot, "src", "linker.lds")).text();
|
||||
const symbolsDyn = await Bun.file(join(repoRoot, "src", "symbols.dyn")).text();
|
||||
const symbolsTxt = await Bun.file(join(repoRoot, "src", "symbols.txt")).text();
|
||||
const symbolsDef = await Bun.file(join(repoRoot, "src", "symbols.def")).text();
|
||||
|
||||
// Create metadata JSON with link command included
|
||||
const metadata = {
|
||||
@@ -41,6 +42,7 @@ const metadata = {
|
||||
linker_lds: linkerLds,
|
||||
symbols_dyn: symbolsDyn,
|
||||
symbols_txt: symbolsTxt,
|
||||
symbols_def: symbolsDef,
|
||||
};
|
||||
|
||||
const metadataPath = join(buildPath, "link-metadata.json");
|
||||
|
||||
Reference in New Issue
Block a user