diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-11-23 01:22:20 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-11-23 01:22:20 +0100 |
| commit | 8b2b9aa0195f16d1d8dad971911b75a4ae513f87 (patch) | |
| tree | cd79a175e0499a04c60d9faa1434e51fdd8945f8 /src/Compilation.zig | |
| parent | 73dcd1914071984c5a2e7c195212404824dbfb9e (diff) | |
| download | zig-8b2b9aa0195f16d1d8dad971911b75a4ae513f87.tar.gz zig-8b2b9aa0195f16d1d8dad971911b75a4ae513f87.zip | |
Compilation: Consider *.lo files to be object files.
Fixes musl libc.so compilation with zig cc.
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index a228d61257..3ad5c7932f 100644 --- a/src/Compilation.zig +++ b/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 { |
