diff --git a/src/main.cpp b/src/main.cpp index b47e532d9bfbac4ee0feed8eafa067feb07a3d22..1dcaa34a9515f1efeb512ed9e3b0912c468ca8ce 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -612,10 +612,12 @@ static int main0(int argc, char **argv) { case Stage2ClangArgPositional: { Buf *arg_buf = buf_create_from_str(it.only_arg); if (buf_ends_with_str(arg_buf, ".c") || + buf_ends_with_str(arg_buf, ".C") || buf_ends_with_str(arg_buf, ".cc") || buf_ends_with_str(arg_buf, ".cpp") || buf_ends_with_str(arg_buf, ".cxx") || - buf_ends_with_str(arg_buf, ".s")) + buf_ends_with_str(arg_buf, ".s") || + buf_ends_with_str(arg_buf, ".S")) { CFile *c_file = heap::c_allocator.create(); c_file->source_path = it.only_arg;