aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-01-27 19:22:58 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-01-27 19:22:58 -0700
commitc281533638dd08bb84f4f538fd8c5ae85791d034 (patch)
tree94ed711ef254a4b35d729dd944c1da2d0f833e63 /src/codegen.cpp
parent69d4f55fbf816bf417dfab9c0e7525971922f166 (diff)
downloadzig-c281533638dd08bb84f4f538fd8c5ae85791d034.tar.gz
zig-c281533638dd08bb84f4f538fd8c5ae85791d034.zip
build command supports -isystem argument
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 78592e4d09..c05dde8f69 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -32,6 +32,11 @@ CodeGen *codegen_create(Buf *root_source_dir) {
return g;
}
+void codegen_set_clang_argv(CodeGen *g, const char **args, int len) {
+ g->clang_argv = args;
+ g->clang_argv_len = len;
+}
+
void codegen_set_build_type(CodeGen *g, CodeGenBuildType build_type) {
g->build_type = build_type;
}