mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 15:12:31 +00:00
Compilation: Consider *.lo files to be object files.
Fixes musl libc.so compilation with zig cc.
This commit is contained in:
parent
73dcd19140
commit
8b2b9aa019
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user