diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-11-23 23:50:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-23 23:50:36 -0500 |
| commit | ed8955cea6932aa34baf91224a63f3666319b08e (patch) | |
| tree | 89dbf2dd0661180bf6ad1a0ba5fd4728ec9f0553 /src/Compilation.zig | |
| parent | 4aa6246345a5710b00a1f4f46f0f5a0046423ba7 (diff) | |
| parent | 67e524da54a934d6e14b1f02f954b16b7c2c5078 (diff) | |
| download | zig-ed8955cea6932aa34baf91224a63f3666319b08e.tar.gz zig-ed8955cea6932aa34baf91224a63f3666319b08e.zip | |
Merge pull request #22049 from alexrp/musl-gen-stubs
`gen_stubs`: No compiler-rt hacks, more compact output, and more arch support
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 { |
