authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-23 11:33:48-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-23 11:34:16-04:00
loge643b414e4aa8bcd02dfa0a9415a87cbfa77666d
tree025018b411a542d229317376029c8af75f3548e8
parent0cd953d40ea0f6934a0900f7ad8593e5deaf6efd
signaturelock-open Commit is signed but in an unrecognized format.

zig cc: recognize .S and .C as source file extensions


1 files changed, 3 insertions(+), 1 deletions(-)

src/main.cpp+3-1
...@@ -612,10 +612,12 @@ static int main0(int argc, char **argv) {...@@ -612,10 +612,12 @@ static int main0(int argc, char **argv) {
612 case Stage2ClangArgPositional: {612 case Stage2ClangArgPositional: {
613 Buf *arg_buf = buf_create_from_str(it.only_arg);613 Buf *arg_buf = buf_create_from_str(it.only_arg);
614 if (buf_ends_with_str(arg_buf, ".c") ||614 if (buf_ends_with_str(arg_buf, ".c") ||
615 buf_ends_with_str(arg_buf, ".C") ||
615 buf_ends_with_str(arg_buf, ".cc") ||616 buf_ends_with_str(arg_buf, ".cc") ||
616 buf_ends_with_str(arg_buf, ".cpp") ||617 buf_ends_with_str(arg_buf, ".cpp") ||
617 buf_ends_with_str(arg_buf, ".cxx") ||618 buf_ends_with_str(arg_buf, ".cxx") ||
618 buf_ends_with_str(arg_buf, ".s"))619 buf_ends_with_str(arg_buf, ".s") ||
620 buf_ends_with_str(arg_buf, ".S"))
619 {621 {
620 CFile *c_file = heap::c_allocator.create<CFile>();622 CFile *c_file = heap::c_allocator.create<CFile>();
621 c_file->source_path = it.only_arg;623 c_file->source_path = it.only_arg;