| ... | @@ -4436,7 +4436,7 @@ pub fn addCCArgs( | ... | @@ -4436,7 +4436,7 @@ pub fn addCCArgs( |
| 4436 | try argv.append("-fno-unwind-tables"); | 4436 | try argv.append("-fno-unwind-tables"); |
| 4437 | } | 4437 | } |
| 4438 | }, | 4438 | }, |
| 4439 | .shared_library, .ll, .bc, .unknown, .static_library, .object, .def, .zig => {}, | 4439 | .shared_library, .ll, .bc, .unknown, .static_library, .object, .def, .zig, .res => {}, |
| 4440 | .assembly, .assembly_with_cpp => { | 4440 | .assembly, .assembly_with_cpp => { |
| 4441 | // The Clang assembler does not accept the list of CPU features like the | 4441 | // The Clang assembler does not accept the list of CPU features like the |
| 4442 | // compiler frontend does. Therefore we must hard-code the -m flags for | 4442 | // compiler frontend does. Therefore we must hard-code the -m flags for |
| ... | @@ -4602,6 +4602,7 @@ pub const FileExt = enum { | ... | @@ -4602,6 +4602,7 @@ pub const FileExt = enum { |
| 4602 | static_library, | 4602 | static_library, |
| 4603 | zig, | 4603 | zig, |
| 4604 | def, | 4604 | def, |
| | 4605 | res, |
| 4605 | unknown, | 4606 | unknown, |
| 4606 | | 4607 | |
| 4607 | pub fn clangSupportsDepFile(ext: FileExt) bool { | 4608 | pub fn clangSupportsDepFile(ext: FileExt) bool { |
| ... | @@ -4617,6 +4618,7 @@ pub const FileExt = enum { | ... | @@ -4617,6 +4618,7 @@ pub const FileExt = enum { |
| 4617 | .static_library, | 4618 | .static_library, |
| 4618 | .zig, | 4619 | .zig, |
| 4619 | .def, | 4620 | .def, |
| | 4621 | .res, |
| 4620 | .unknown, | 4622 | .unknown, |
| 4621 | => false, | 4623 | => false, |
| 4622 | }; | 4624 | }; |
| ... | @@ -4639,6 +4641,7 @@ pub const FileExt = enum { | ... | @@ -4639,6 +4641,7 @@ pub const FileExt = enum { |
| 4639 | .static_library => target.staticLibSuffix(), | 4641 | .static_library => target.staticLibSuffix(), |
| 4640 | .zig => ".zig", | 4642 | .zig => ".zig", |
| 4641 | .def => ".def", | 4643 | .def => ".def", |
| | 4644 | .res => ".res", |
| 4642 | .unknown => "", | 4645 | .unknown => "", |
| 4643 | }; | 4646 | }; |
| 4644 | } | 4647 | } |
| ... | @@ -4730,6 +4733,8 @@ pub fn classifyFileExt(filename: []const u8) FileExt { | ... | @@ -4730,6 +4733,8 @@ pub fn classifyFileExt(filename: []const u8) FileExt { |
| 4730 | return .cu; | 4733 | return .cu; |
| 4731 | } else if (mem.endsWith(u8, filename, ".def")) { | 4734 | } else if (mem.endsWith(u8, filename, ".def")) { |
| 4732 | return .def; | 4735 | return .def; |
| | 4736 | } else if (mem.endsWith(u8, filename, ".res")) { |
| | 4737 | return .res; |
| 4733 | } else { | 4738 | } else { |
| 4734 | return .unknown; | 4739 | return .unknown; |
| 4735 | } | 4740 | } |