# different strategy to fix compiler_rt.zig and c.zig · gitcafe/zig

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

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

Visibility: public

Requested revision: 1572cd4d76dfa35e6a05bbb1405982d7fef6f833

Requested commit: 1572cd4d76dfa35e6a05bbb1405982d7fef6f833

Commit: 1572cd4d76dfa35e6a05bbb1405982d7fef6f833

Tree: 9fcbeff7b1cbc3e0ca3450feec5aad5e21138a7d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
different strategy to fix compiler_rt.zig and c.zig

with respect to std.builtin.link_libc.

The commit 27e008eb292038c5a6b9a13b64c7b69d1525f690 did not solve the
problem because although it got std.builtin.link_libc to be true for
compiler_rt.zig and c.zig, it had other unintentional side effects which
broke the build for -lc -target foo-linux-musl.

This commit introduces a new flag to Compilation to allow setting this
comptime flag to true without introducing other side effects to
compilation and linking.

```

## Parents

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

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