mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 22:09:49 +00:00
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
This commit is contained in:
parent
d70be200d8
commit
cbc05e0b1d
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user