ability to use zig cc as a drop-in C compiler

The basics are working
This commit is contained in:
Andrew Kelley
2020-03-21 10:12:28 -04:00
parent beea478acc
commit a4eaeee720
11 changed files with 6295 additions and 18 deletions

View File

@@ -9778,7 +9778,7 @@ static void gen_c_object(CodeGen *g, Buf *self_exe_path, CFile *c_file) {
Termination term;
ZigList<const char *> args = {};
args.append(buf_ptr(self_exe_path));
args.append("cc");
args.append("clang");
Buf *out_dep_path = buf_sprintf("%s.d", buf_ptr(out_obj_path));
add_cc_args(g, args, buf_ptr(out_dep_path), false);