diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-01-27 19:22:58 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-01-27 19:22:58 -0700 |
| commit | c281533638dd08bb84f4f538fd8c5ae85791d034 (patch) | |
| tree | 94ed711ef254a4b35d729dd944c1da2d0f833e63 /src/analyze.cpp | |
| parent | 69d4f55fbf816bf417dfab9c0e7525971922f166 (diff) | |
| download | zig-c281533638dd08bb84f4f538fd8c5ae85791d034.tar.gz zig-c281533638dd08bb84f4f538fd8c5ae85791d034.zip | |
build command supports -isystem argument
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 0ca480fdd0..a8434cde36 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -1057,7 +1057,9 @@ static void resolve_c_import_decl(CodeGen *g, ImportTableEntry *import, AstNode find_libc_path(g); int err; ParseH parse_h = {{0}}; - if ((err = parse_h_buf(&parse_h, child_context->c_import_buf, buf_ptr(g->libc_include_path)))) { + if ((err = parse_h_buf(&parse_h, child_context->c_import_buf, g->clang_argv, g->clang_argv_len, + buf_ptr(g->libc_include_path)))) + { zig_panic("unable to parse h file: %s\n", err_str(err)); } |
