aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-10-01 15:51:55 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-10-01 15:51:55 -0400
commit0975e37b162478a0d35c1f4bab9a2d0fb51aa203 (patch)
tree5be68a8cb4e25329926297ccd7ca3df11722e7da /src/link.cpp
parent0227becb564088db4b5598d7253038c92f11b6c2 (diff)
downloadzig-0975e37b162478a0d35c1f4bab9a2d0fb51aa203.tar.gz
zig-0975e37b162478a0d35c1f4bab9a2d0fb51aa203.zip
fix implementation of --zig-std-dir
see #463
Diffstat (limited to 'src/link.cpp')
-rw-r--r--src/link.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/link.cpp b/src/link.cpp
index 359474204b..90862bde8d 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -33,7 +33,8 @@ static const char *get_libc_static_file(CodeGen *g, const char *file) {
static Buf *build_o_raw(CodeGen *parent_gen, const char *oname, Buf *full_path) {
ZigTarget *child_target = parent_gen->is_native_target ? nullptr : &parent_gen->zig_target;
- CodeGen *child_gen = codegen_create(full_path, child_target, OutTypeObj, parent_gen->build_mode);
+ CodeGen *child_gen = codegen_create(full_path, child_target, OutTypeObj, parent_gen->build_mode,
+ parent_gen->zig_std_dir);
child_gen->want_h_file = false;
child_gen->verbose_link = parent_gen->verbose_link;