std/Build/Step/Compile: do not propagate deps of complex addObject step
This commit is contained in:
@@ -1077,9 +1077,8 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
|
||||
.exe => return step.fail("cannot link with an executable build artifact", .{}),
|
||||
.@"test" => return step.fail("cannot link with a test", .{}),
|
||||
.obj => {
|
||||
const included_in_lib = !my_responsibility and
|
||||
compile.kind == .lib and other.kind == .obj;
|
||||
if (!already_linked and !included_in_lib) {
|
||||
const included_in_lib_or_obj = !my_responsibility and (compile.kind == .lib or compile.kind == .obj);
|
||||
if (!already_linked and !included_in_lib_or_obj) {
|
||||
try zig_args.append(other.getEmittedBin().getPath(b));
|
||||
total_linker_objects += 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user