mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 13:58:27 +00:00
zig cc: support .cc and .cxx extensions
This commit is contained in:
parent
0eee98edc1
commit
4d9b458f8f
@ -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<CFile>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user