From c281533638dd08bb84f4f538fd8c5ae85791d034 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 27 Jan 2016 19:22:58 -0700 Subject: build command supports -isystem argument --- src/analyze.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/analyze.cpp') 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)); } -- cgit v1.2.3