# fix not passing std.builtin.link_libc to compiler_rt.zig and c.zig · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/27e008eb292038c5a6b9a13b64c7b69d1525f690)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 27e008eb292038c5a6b9a13b64c7b69d1525f690

Requested commit: 27e008eb292038c5a6b9a13b64c7b69d1525f690

Commit: 27e008eb292038c5a6b9a13b64c7b69d1525f690

Tree: d718d7c3069ce1a2528ebe4bee1d1a8322188d31

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix not passing std.builtin.link_libc to compiler_rt.zig and c.zig

comment reproduced here:

This is so that compiler_rt and libc.zig libraries know whether they
will eventually be linked with libc. They make different decisions
about what to export depending on whether another libc will be linked
in. For example, compiler_rt will not export the __chkstk symbol if it
knows libc will provide it, and likewise c.zig will not export memcpy.

```

## Parents

- [f69650a4788c57ec20348e9c002884ba39339d1c](https://git.cafe/gitcafe/zig/commit/f69650a4788c57ec20348e9c002884ba39339d1c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/27e008eb292038c5a6b9a13b64c7b69d1525f690?format=markdown)
