From 4d9b458f8f722603dd0c303bddeca553948025fb Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 21 Mar 2020 16:51:43 -0400 Subject: [PATCH] zig cc: support .cc and .cxx extensions --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 0bb6868f1a..fc73cb78d6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -610,7 +610,9 @@ 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, ".cc") || buf_ends_with_str(arg_buf, ".cpp") || + buf_ends_with_str(arg_buf, ".cxx") || buf_ends_with_str(arg_buf, ".s")) { CFile *c_file = heap::c_allocator.create();