fix mismatch between expected and actual output name

This commit is contained in:
Andrew Kelley 2020-03-14 01:26:49 -04:00
parent faa3c40b54
commit 4a8e766ef5
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -566,6 +566,7 @@ static const char *build_libc_object(CodeGen *parent_gen, const char *name, CFil
Stage2ProgressNode *progress_node)
{
CodeGen *child_gen = create_child_codegen(parent_gen, nullptr, OutTypeObj, nullptr, name, progress_node);
child_gen->root_out_name = buf_create_from_str(name);
ZigList<CFile *> c_source_files = {0};
c_source_files.append(c_file);
child_gen->c_source_files = c_source_files;