mirror of
https://github.com/ziglang/zig.git
synced 2026-02-16 14:28:57 +00:00
std/Build/Step/Compile: do not propagate deps of complex addObject step
This commit is contained in:
parent
d7c2324cdb
commit
a8b9f0cf22
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user