tiny.tldr.link
Defined in tiny.tldr.
Source
Source: lib/tldr/src/link.zig:14
zig
pub fn link( allocator: std.mem.Allocator, inputs: []const Input, options: LinkOptions,) Error!LinkedImage { const phase = trace.scope("link"); defer phase.end(); if (options.diagnostics) |diagnostics| diagnostics.clear(); try model.validateOptions(options); return switch (options.target.object_format) { .elf => try formats.elf.linkExecutable(allocator, inputs, options), .coff => { { const input_phase = trace.product(.input_discovery); defer input_phase.end(); try formats.validateInputFormats(inputs, options); } return try formats.coff.linkExecutable(allocator, inputs, options); }, .macho => { { const input_phase = trace.product(.input_discovery); defer input_phase.end(); try formats.validateInputFormats(inputs, options); } return try formats.macho.linkExecutable(allocator, inputs, options); }, .wasm => error.UnsupportedFormat, };}Source: lib/tldr/src/root.zig:80
zig
pub const link = linker.link;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |