mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01: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:
parent
37288e53ae
commit
305fd06756
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue