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

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

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

Visibility: public

Requested revision: d2398cf009bfc2f4274f1326b0ef7dfbb1ae8d7f

Requested commit: d2398cf009bfc2f4274f1326b0ef7dfbb1ae8d7f

Commit: d2398cf009bfc2f4274f1326b0ef7dfbb1ae8d7f

Tree: b8c3ec300d9107240803c7aca731484b5ecea2b8

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

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

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