From 5ca54036ca0bc292ead681c03c8ac57e27a127db Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 18 Oct 2024 00:23:35 -0700 Subject: move linker input file parsing to the compilation pipeline --- src/libunwind.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libunwind.zig') diff --git a/src/libunwind.zig b/src/libunwind.zig index 5eb19e8d67..12acea13fc 100644 --- a/src/libunwind.zig +++ b/src/libunwind.zig @@ -199,8 +199,10 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr }, }; + const crt_file = try sub_compilation.toCrtFile(); + comp.enqueueLinkTaskMode(crt_file.full_object_path, output_mode); assert(comp.libunwind_static_lib == null); - comp.libunwind_static_lib = try sub_compilation.toCrtFile(); + comp.libunwind_static_lib = crt_file; } const unwind_src_list = [_][]const u8{ -- cgit v1.2.3