mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 05:48:31 +00:00
use -nostdinc++ when compiling C code
This commit is contained in:
parent
3932b6474e
commit
6fd2816431
@ -8151,6 +8151,7 @@ static void gen_c_object(CodeGen *g, Buf *self_exe_path, CFile *c_file) {
|
||||
}
|
||||
|
||||
args.append("-nobuiltininc");
|
||||
args.append("-nostdinc++");
|
||||
|
||||
args.append("-isystem");
|
||||
args.append(buf_ptr(g->zig_c_headers_dir));
|
||||
|
||||
@ -4805,6 +4805,7 @@ Error parse_h_file(ImportTableEntry *import, ZigList<ErrorMsg *> *errors, const
|
||||
}
|
||||
|
||||
clang_argv.append("-nobuiltininc");
|
||||
clang_argv.append("-nostdinc++");
|
||||
|
||||
clang_argv.append("-isystem");
|
||||
clang_argv.append(buf_ptr(codegen->zig_c_headers_dir));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user