authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-21 16:51:43-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-21 16:51:43-04:00
log4d9b458f8f722603dd0c303bddeca553948025fb
tree8fa94f703a3a5efcac622cafd8ee49a3b50af5e0
parent0eee98edc1e505486a9ec51a331d3aa322fce9ee
signature Commit is signed but in an unrecognized format.

zig cc: support .cc and .cxx extensions


1 files changed, 2 insertions(+), 0 deletions(-)

src/main.cpp+2
...@@ -610,7 +610,9 @@ static int main0(int argc, char **argv) {...@@ -610,7 +610,9 @@ static int main0(int argc, char **argv) {
610 case Stage2ClangArgPositional: {610 case Stage2ClangArgPositional: {
611 Buf *arg_buf = buf_create_from_str(it.only_arg);611 Buf *arg_buf = buf_create_from_str(it.only_arg);
612 if (buf_ends_with_str(arg_buf, ".c") ||612 if (buf_ends_with_str(arg_buf, ".c") ||
613 buf_ends_with_str(arg_buf, ".cc") ||
613 buf_ends_with_str(arg_buf, ".cpp") ||614 buf_ends_with_str(arg_buf, ".cpp") ||
615 buf_ends_with_str(arg_buf, ".cxx") ||
614 buf_ends_with_str(arg_buf, ".s"))616 buf_ends_with_str(arg_buf, ".s"))
615 {617 {
616 CFile *c_file = heap::c_allocator.create<CFile>();618 CFile *c_file = heap::c_allocator.create<CFile>();