commit 305fd06756d0a90e330c957d85738f195b94bc10 (tree)
parent 37288e53ae4e617a56fa79d5b718f3b66957d4f5
Author: InKryption <inkryption07@gmail.com>
Date: Mon, 21 Apr 2025 15:17:39 +0200
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.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig
@@ -1786,7 +1786,8 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
}
if (compile.kind == .lib and compile.linkage != null and compile.linkage.? == .dynamic and
- compile.version != null and std.Build.wantSharedLibSymLinks(compile.rootModuleTarget()))
+ compile.version != null and compile.generated_bin != null and
+ std.Build.wantSharedLibSymLinks(compile.rootModuleTarget()))
{
try doAtomicSymLinks(
step,