Commit d74e87aab1

Alex Rønne Petersen <alex@alexrp.com>
2024-12-13 04:57:53
Compilation: Use Clang dependency file for preprocessed assembly files.
1 parent 12a289c
Changed files (1)
src/Compilation.zig
@@ -5891,12 +5891,11 @@ pub const FileExt = enum {
 
     pub fn clangSupportsDepFile(ext: FileExt) bool {
         return switch (ext) {
-            .c, .cpp, .h, .hpp, .hm, .hmm, .m, .mm, .cu => true,
+            .assembly_with_cpp, .c, .cpp, .h, .hpp, .hm, .hmm, .m, .mm, .cu => true,
 
             .ll,
             .bc,
             .assembly,
-            .assembly_with_cpp,
             .shared_library,
             .object,
             .static_library,