# CLI: ignore \-lgcc_s when it is redundant with compiler-rt · gitcafe/zig

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

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

Visibility: public

Requested revision: 2836cd5fbdcbb22b1e03c01005e0e09777c5475f

Requested commit: 2836cd5fbdcbb22b1e03c01005e0e09777c5475f

Commit: 2836cd5fbdcbb22b1e03c01005e0e09777c5475f

Tree: e0410656d83b3ed802211e201902e4f0d08f917a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
CLI: ignore -lgcc_s when it is redundant with compiler-rt

For some projects, they can't help themselves, -lgcc_s ends up on the
compiler command line even though it does not belong there. In Zig we
know what -lgcc_s does. It's an alternative to compiler-rt. With this
commit we emit a warning telling that it is unnecessary to put such
thing on the command line, and happily ignore it, since we will fulfill
the dependency with compiler-rt.

```

## Parents

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

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