This commit is contained in:
agra
2026-02-11 20:41:43 +02:00
parent 94b0296fd5
commit 9d96f05d3b
13 changed files with 460 additions and 70 deletions

View File

@@ -148,7 +148,7 @@ fn compile(allocator: std.mem.Allocator, io: std.Io, input_path: []const u8, out
cg.emitObject(obj_path.ptr) catch { comp.renderErrors(); return error.CompileError; };
// Link
sx.codegen.CodeGen.link(io, obj_path, output_path) catch {
sx.codegen.CodeGen.link(allocator, io, obj_path, output_path, cg.foreign_libraries.items) catch {
std.debug.print("error: linking failed\n", .{});
return error.CompileError;
};