| ... | @@ -610,7 +610,7 @@ pub fn forceUndefinedSymbol(compile: *Compile, symbol_name: []const u8) void { | ... | @@ -610,7 +610,7 @@ pub fn forceUndefinedSymbol(compile: *Compile, symbol_name: []const u8) void { |
| 610 | | 610 | |
| 611 | /// Returns whether the library, executable, or object depends on a particular system library. | 611 | /// Returns whether the library, executable, or object depends on a particular system library. |
| 612 | /// Includes transitive dependencies. | 612 | /// Includes transitive dependencies. |
| 613 | pub fn dependsOnSystemLibrary(compile: *const Compile, name: []const u8) bool { | 613 | pub fn dependsOnSystemLibrary(compile: *Compile, name: []const u8) bool { |
| 614 | var is_linking_libc = false; | 614 | var is_linking_libc = false; |
| 615 | var is_linking_libcpp = false; | 615 | var is_linking_libcpp = false; |
| 616 | | 616 | |
| ... | @@ -622,8 +622,8 @@ pub fn dependsOnSystemLibrary(compile: *const Compile, name: []const u8) bool { | ... | @@ -622,8 +622,8 @@ pub fn dependsOnSystemLibrary(compile: *const Compile, name: []const u8) bool { |
| 622 | else => {}, | 622 | else => {}, |
| 623 | } | 623 | } |
| 624 | } | 624 | } |
| 625 | if (mod.link_libc) is_linking_libc = true; | 625 | if (mod.link_libc orelse false) is_linking_libc = true; |
| 626 | if (mod.link_libcpp) is_linking_libcpp = true; | 626 | if (mod.link_libcpp orelse false) is_linking_libcpp = true; |
| 627 | } | 627 | } |
| 628 | } | 628 | } |
| 629 | | 629 | |