mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 07:03:11 +00:00
zig cc: recognize .S and .C as source file extensions
This commit is contained in:
parent
0cd953d40e
commit
e643b414e4
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user