# stage2: fix ELF linking to include compiler_rt · gitcafe/zig

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

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

Visibility: public

Requested revision: ba7f40c4302fe88fddc92b5b44365f74e00800ff

Requested commit: ba7f40c4302fe88fddc92b5b44365f74e00800ff

Commit: ba7f40c4302fe88fddc92b5b44365f74e00800ff

Tree: 68e384cc7c053d662fc3bcae0d4aa8d0369beaab

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix ELF linking to include compiler_rt

There was duplicated logic for whether to include compiler_rt in the
linker line both in the frontend and in the linker backends. Now the
logic is only in the frontend; the linker puts it on the linker line if
the frontend provides it.

Fixes the CI failures.

```

## Parents

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

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