authorgravatar for inkryption07@gmail.comInKryption <inkryption07@gmail.com> 2025-04-21 15:17:39+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-01-22 22:28:28+01:00
log305fd06756d0a90e330c957d85738f195b94bc10
tree508058cced928fe4e51ae601960d85d101fa936c
parent37288e53ae4e617a56fa79d5b718f3b66957d4f5

Build: check if dynamic lib installed for symlinks

If the library isn't actually installed, `generated_bin` will be null, causing this to panic about a missing dependency for itself; checking for this state avoids this.

1 files changed, 2 insertions(+), 1 deletions(-)

lib/std/Build/Step/Compile.zig+2-1
...@@ -1786,7 +1786,8 @@ fn make(step: *Step, options: Step.MakeOptions) !void {...@@ -1786,7 +1786,8 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
1786 }1786 }
17871787
1788 if (compile.kind == .lib and compile.linkage != null and compile.linkage.? == .dynamic and1788 if (compile.kind == .lib and compile.linkage != null and compile.linkage.? == .dynamic and
1789 compile.version != null and std.Build.wantSharedLibSymLinks(compile.rootModuleTarget()))1789 compile.version != null and compile.generated_bin != null and
1790 std.Build.wantSharedLibSymLinks(compile.rootModuleTarget()))
1790 {1791 {
1791 try doAtomicSymLinks(1792 try doAtomicSymLinks(
1792 step,1793 step,