diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-07-03 14:43:33 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-07-03 14:43:33 -0400 |
| commit | 2f4faf306d5d7a5b730b4dc6d426af713289bb51 (patch) | |
| tree | 51eab8ecad767f7436bf7ef3fe3f155009e5e5d1 /src/link.cpp | |
| parent | 53ca4118bdd3908092a53b6b4c59762a85b78dfc (diff) | |
| parent | bbc0d440b86a1783c1fddc5e594f9b4067016489 (diff) | |
| download | zig-2f4faf306d5d7a5b730b4dc6d426af713289bb51.tar.gz zig-2f4faf306d5d7a5b730b4dc6d426af713289bb51.zip | |
Merge branch 'function-sections' of https://github.com/timonkruiper/zig into timonkruiper-function-sections
Diffstat (limited to 'src/link.cpp')
| -rw-r--r-- | src/link.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/link.cpp b/src/link.cpp index 277dcbc5c6..401f477760 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -791,6 +791,8 @@ static Buf *build_a_raw(CodeGen *parent_gen, const char *aname, Buf *full_path, new_link_lib->provided_explicitly = parent_gen->libc_link_lib->provided_explicitly; } + child_gen->function_sections = true; + codegen_build_and_link(child_gen); return &child_gen->output_file_path; } |
