diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2023-09-21 21:30:21 -0700 |
|---|---|---|
| committer | Ryan Liptak <squeek502@hotmail.com> | 2023-09-21 21:30:21 -0700 |
| commit | 572956ce240478ed6bdc5d98237e25fea0bab3e5 (patch) | |
| tree | be7ee28703b834d611aeac9598720b11cd6bdf02 /src/Compilation.zig | |
| parent | 471f279cd621cef7c826fe27f1f8d0c585cc76e2 (diff) | |
| download | zig-572956ce240478ed6bdc5d98237e25fea0bab3e5.tar.gz zig-572956ce240478ed6bdc5d98237e25fea0bab3e5.zip | |
classifyFileExt: Use case-insensitive matching for .rc and .res
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index a5012e71c4..caff912f01 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -5573,9 +5573,9 @@ pub fn classifyFileExt(filename: []const u8) FileExt { return .cu; } else if (mem.endsWith(u8, filename, ".def")) { return .def; - } else if (mem.endsWith(u8, filename, ".rc")) { + } else if (std.ascii.endsWithIgnoreCase(filename, ".rc")) { return .rc; - } else if (mem.endsWith(u8, filename, ".res")) { + } else if (std.ascii.endsWithIgnoreCase(filename, ".res")) { return .res; } else { return .unknown; |
