diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-23 11:33:48 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-23 11:34:16 -0400 |
| commit | e643b414e4aa8bcd02dfa0a9415a87cbfa77666d (patch) | |
| tree | 025018b411a542d229317376029c8af75f3548e8 /src | |
| parent | 0cd953d40ea0f6934a0900f7ad8593e5deaf6efd (diff) | |
| download | zig-e643b414e4aa8bcd02dfa0a9415a87cbfa77666d.tar.gz zig-e643b414e4aa8bcd02dfa0a9415a87cbfa77666d.zip | |
zig cc: recognize .S and .C as source file extensions
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index b47e532d9b..1dcaa34a95 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<CFile>(); c_file->source_path = it.only_arg; |
