diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-02-26 10:15:48 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-02-26 10:15:48 -0500 |
| commit | 6fd28164316185676ca3337f07c510b409cb6687 (patch) | |
| tree | 5257b0fb54eb566f8b37459f438b6491bdb1e82a /src/codegen.cpp | |
| parent | 3932b6474e890bdc6bc31cf7cad655e4feabaf7d (diff) | |
| download | zig-6fd28164316185676ca3337f07c510b409cb6687.tar.gz zig-6fd28164316185676ca3337f07c510b409cb6687.zip | |
use -nostdinc++ when compiling C code
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index a10f9b4ffa..6e4e66e978 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -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)); |
