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.
This commit is contained in:
InKryption 2025-04-21 15:17:39 +02:00 committed by Alex Rønne Petersen
parent 37288e53ae
commit 305fd06756

View file

@ -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,