Skip to content

Commit 51ee237

Browse files
committed
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 parent dc6ffc2 commit 51ee237

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/std/Build/Step/Compile.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1880,7 +1880,8 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
18801880
}
18811881

18821882
if (compile.kind == .lib and compile.linkage != null and compile.linkage.? == .dynamic and
1883-
compile.version != null and std.Build.wantSharedLibSymLinks(compile.rootModuleTarget()))
1883+
compile.version != null and compile.generated_bin != null and
1884+
std.Build.wantSharedLibSymLinks(compile.rootModuleTarget()))
18841885
{
18851886
try doAtomicSymLinks(
18861887
step,

0 commit comments

Comments
 (0)