Compilation: Consider *.lo files to be object files.

Fixes musl libc.so compilation with zig cc.
This commit is contained in:
Alex Rønne Petersen 2024-11-23 01:22:20 +01:00
parent 73dcd19140
commit 8b2b9aa019
No known key found for this signature in database

View File

@ -5884,7 +5884,9 @@ pub const FileExt = enum {
};
pub fn hasObjectExt(filename: []const u8) bool {
return mem.endsWith(u8, filename, ".o") or mem.endsWith(u8, filename, ".obj");
return mem.endsWith(u8, filename, ".o") or
mem.endsWith(u8, filename, ".lo") or
mem.endsWith(u8, filename, ".obj");
}
pub fn hasStaticLibraryExt(filename: []const u8) bool {