authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-23 01:22:20+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-23 01:22:20+01:00
log8b2b9aa0195f16d1d8dad971911b75a4ae513f87
treecd79a175e0499a04c60d9faa1434e51fdd8945f8
parent73dcd1914071984c5a2e7c195212404824dbfb9e
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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

Fixes musl libc.so compilation with zig cc.

1 files changed, 3 insertions(+), 1 deletions(-)

src/Compilation.zig+3-1
...@@ -5884,7 +5884,9 @@ pub const FileExt = enum {...@@ -5884,7 +5884,9 @@ pub const FileExt = enum {
5884};5884};
58855885
5886pub fn hasObjectExt(filename: []const u8) bool {5886pub fn hasObjectExt(filename: []const u8) bool {
5887 return mem.endsWith(u8, filename, ".o") or mem.endsWith(u8, filename, ".obj");5887 return mem.endsWith(u8, filename, ".o") or
5888 mem.endsWith(u8, filename, ".lo") or
5889 mem.endsWith(u8, filename, ".obj");
5888}5890}
58895891
5890pub fn hasStaticLibraryExt(filename: []const u8) bool {5892pub fn hasStaticLibraryExt(filename: []const u8) bool {