mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
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:
committed by
Alex Rønne Petersen
parent
37288e53ae
commit
305fd06756
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user