use -nobuiltininc when compiling c code
This commit is contained in:
parent
82fafca375
commit
3932b6474e
@ -8150,6 +8150,8 @@ static void gen_c_object(CodeGen *g, Buf *self_exe_path, CFile *c_file) {
|
||||
args.append(buf_ptr(out_dep_path));
|
||||
}
|
||||
|
||||
args.append("-nobuiltininc");
|
||||
|
||||
args.append("-isystem");
|
||||
args.append(buf_ptr(g->zig_c_headers_dir));
|
||||
|
||||
|
@ -4804,6 +4804,8 @@ Error parse_h_file(ImportTableEntry *import, ZigList<ErrorMsg *> *errors, const
|
||||
}
|
||||
}
|
||||
|
||||
clang_argv.append("-nobuiltininc");
|
||||
|
||||
clang_argv.append("-isystem");
|
||||
clang_argv.append(buf_ptr(codegen->zig_c_headers_dir));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user