Skip to content

Commit

Permalink
Compilation: Consider *.rlib files to be static libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Dec 5, 2024
1 parent d70be20 commit cbc05e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Compilation.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5890,7 +5890,9 @@ pub fn hasObjectExt(filename: []const u8) bool {
}

pub fn hasStaticLibraryExt(filename: []const u8) bool {
return mem.endsWith(u8, filename, ".a") or mem.endsWith(u8, filename, ".lib");
return mem.endsWith(u8, filename, ".a") or
mem.endsWith(u8, filename, ".lib") or
mem.endsWith(u8, filename, ".rlib");
}

pub fn hasCExt(filename: []const u8) bool {
Expand Down

0 comments on commit cbc05e0

Please sign in to comment.