| ... | @@ -601,7 +601,7 @@ pub fn forceUndefinedSymbol(compile: *Compile, symbol_name: []const u8) void { | ... | @@ -601,7 +601,7 @@ pub fn forceUndefinedSymbol(compile: *Compile, symbol_name: []const u8) void { |
| 601 | | 601 | |
| 602 | /// Returns whether the library, executable, or object depends on a particular system library. | 602 | /// Returns whether the library, executable, or object depends on a particular system library. |
| 603 | /// Includes transitive dependencies. | 603 | /// Includes transitive dependencies. |
| 604 | pub fn dependsOnSystemLibrary(compile: *const Compile, name: []const u8) bool { | 604 | pub fn dependsOnSystemLibrary(compile: *Compile, name: []const u8) bool { |
| 605 | var is_linking_libc = false; | 605 | var is_linking_libc = false; |
| 606 | var is_linking_libcpp = false; | 606 | var is_linking_libcpp = false; |
| 607 | | 607 | |
| ... | @@ -613,8 +613,8 @@ pub fn dependsOnSystemLibrary(compile: *const Compile, name: []const u8) bool { | ... | @@ -613,8 +613,8 @@ pub fn dependsOnSystemLibrary(compile: *const Compile, name: []const u8) bool { |
| 613 | else => {}, | 613 | else => {}, |
| 614 | } | 614 | } |
| 615 | } | 615 | } |
| 616 | if (mod.link_libc) is_linking_libc = true; | 616 | if (mod.link_libc orelse false) is_linking_libc = true; |
| 617 | if (mod.link_libcpp) is_linking_libcpp = true; | 617 | if (mod.link_libcpp orelse false) is_linking_libcpp = true; |
| 618 | } | 618 | } |
| 619 | } | 619 | } |
| 620 | | 620 | |