Commit 8b2b9aa019

Alex Rønne Petersen <alex@alexrp.com>
2024-11-23 01:22:20
Compilation: Consider *.lo files to be object files.
Fixes musl libc.so compilation with zig cc.
1 parent 73dcd19
Changed files (1)
src/Compilation.zig
@@ -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 {