| ... | @@ -1077,9 +1077,8 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void { | ... | @@ -1077,9 +1077,8 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void { |
| 1077 | .exe => return step.fail("cannot link with an executable build artifact", .{}), | 1077 | .exe => return step.fail("cannot link with an executable build artifact", .{}), |
| 1078 | .@"test" => return step.fail("cannot link with a test", .{}), | 1078 | .@"test" => return step.fail("cannot link with a test", .{}), |
| 1079 | .obj => { | 1079 | .obj => { |
| 1080 | const included_in_lib = !my_responsibility and | 1080 | const included_in_lib_or_obj = !my_responsibility and (compile.kind == .lib or compile.kind == .obj); |
| 1081 | compile.kind == .lib and other.kind == .obj; | 1081 | if (!already_linked and !included_in_lib_or_obj) { |
| 1082 | if (!already_linked and !included_in_lib) { | | |
| 1083 | try zig_args.append(other.getEmittedBin().getPath(b)); | 1082 | try zig_args.append(other.getEmittedBin().getPath(b)); |
| 1084 | total_linker_objects += 1; | 1083 | total_linker_objects += 1; |
| 1085 | } | 1084 | } |