aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
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;