Commit 0039cb7ef2

Linus Groh <mail@linusgroh.de>
2024-05-29 00:00:57
std.Build.step.Compile: Fix lib{c,cpp} mixup in dependsOnSystemLibrary()
1 parent 88146ea
Changed files (1)
lib
std
Build
lib/std/Build/Step/Compile.zig
@@ -591,7 +591,7 @@ pub fn dependsOnSystemLibrary(self: *const Compile, name: []const u8) bool {
                 else => continue,
             }
         }
-        is_linking_libc = is_linking_libc or module.link_libcpp == true;
+        is_linking_libc = is_linking_libc or module.link_libc == true;
         is_linking_libcpp = is_linking_libcpp or module.link_libcpp == true;
     }