diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-15 17:28:12 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-15 17:28:12 -0400 |
| commit | a2432b6755c3f5c7f05ed219aefbf290aeb358cb (patch) | |
| tree | fa1bd38109ba5ecc932d4766da2b4b25b5303b5c /src/link.cpp | |
| parent | 0a69a10f2a1997edaeae047c44eca7b260ab72b9 (diff) | |
| parent | a27a8561e9387b22d7c694af924e8f2ed0f17290 (diff) | |
| download | zig-a2432b6755c3f5c7f05ed219aefbf290aeb358cb.tar.gz zig-a2432b6755c3f5c7f05ed219aefbf290aeb358cb.zip | |
Merge pull request #4735 from ziglang/renameat
zig build system: correctly handle multiple output artifacts
Diffstat (limited to 'src/link.cpp')
| -rw-r--r-- | src/link.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/link.cpp b/src/link.cpp index 5b6d3a4fdb..3f7772bb08 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -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; |
