authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-05 10:02:07+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-05 15:05:55+01:00
logcbc05e0b1d86d57b533abeedc97e6fb6a648c64b
treebab6f8017a9a7438862d76fe0d58fde949975627
parentd70be200d8a388c3fd23aa0e246322300443d58a

Compilation: Consider *.rlib files to be static libraries.

These are produced by rustc: https://rustc-dev-guide.rust-lang.org/backend/libs-and-metadata.html#rlib

1 files changed, 3 insertions(+), 1 deletions(-)

src/Compilation.zig+3-1
...@@ -5890,7 +5890,9 @@ pub fn hasObjectExt(filename: []const u8) bool {...@@ -5890,7 +5890,9 @@ pub fn hasObjectExt(filename: []const u8) bool {
5890}5890}
58915891
5892pub fn hasStaticLibraryExt(filename: []const u8) bool {5892pub fn hasStaticLibraryExt(filename: []const u8) bool {
5893 return mem.endsWith(u8, filename, ".a") or mem.endsWith(u8, filename, ".lib");5893 return mem.endsWith(u8, filename, ".a") or
5894 mem.endsWith(u8, filename, ".lib") or
5895 mem.endsWith(u8, filename, ".rlib");
5894}5896}
58955897
5896pub fn hasCExt(filename: []const u8) bool {5898pub fn hasCExt(filename: []const u8) bool {