Pass target_details to child CodeGens

This commit is contained in:
Layne Gustafson 2020-01-17 08:30:42 -05:00 committed by Andrew Kelley
parent 430077df1b
commit c15623428e
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -10661,6 +10661,7 @@ CodeGen *create_child_codegen(CodeGen *parent_gen, Buf *root_src_path, OutType o
CodeGen *child_gen = codegen_create(nullptr, root_src_path, parent_gen->zig_target, out_type,
parent_gen->build_mode, parent_gen->zig_lib_dir, libc, get_global_cache_dir(), false, child_progress_node);
child_gen->target_details = parent_gen->target_details;
child_gen->root_out_name = buf_create_from_str(name);
child_gen->disable_gen_h = true;
child_gen->want_stack_check = WantStackCheckDisabled;