Commit 68700e5de1

tjog <28024277+tjog@users.noreply.github.com>
2025-05-03 17:17:07
link+macho+fuzz: use correct input type
A debug build of the compiler detects invalid union access since `classifyInputFile` detects `.archive` and this line constructed a `.object` input.
1 parent 3ed1599
Changed files (1)
src
src/link/MachO.zig
@@ -416,7 +416,7 @@ pub fn flushModule(
     }
 
     if (comp.config.any_fuzz) {
-        try positionals.append(try link.openObjectInput(diags, comp.fuzzer_lib.?.full_object_path));
+        try positionals.append(try link.openArchiveInput(diags, comp.fuzzer_lib.?.full_object_path, false, false));
     }
 
     if (comp.ubsan_rt_lib) |crt_file| {