aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-07-22 18:12:35 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-07-22 19:51:32 -0700
commit80ba9f060d81e8c5674acb4eb07c833d26121462 (patch)
tree92b3138a76cdf0a3befc721229501e286e7d5035 /src/codegen
parent7c25390c957273ff43927608a45e257c4ed73549 (diff)
downloadzig-80ba9f060d81e8c5674acb4eb07c833d26121462.tar.gz
zig-80ba9f060d81e8c5674acb4eb07c833d26121462.zip
fix double linking of compiler-rt symbols on wasm
The include_compiler_rt stored in the bin file options means that we need compiler-rt symbols *somehow*. However, in the context of using the stage1 backend we need to tell stage1 to include compiler-rt only if stage1 is the place that needs to provide those symbols. Otherwise the stage2 infrastructure will take care of it in the linker, by putting compiler_rt.o into a static archive, or linking compiler_rt.a against an executable. In other words we only want to set this flag for stage1 if we are using build-obj.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions