# stage2: rip out multi-compilation-unit compiler-rt · gitcafe/zig

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

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

Visibility: public

Requested revision: e4092d44426a471ee6097fae24069c72cffdc22a

Requested commit: e4092d44426a471ee6097fae24069c72cffdc22a

Commit: e4092d44426a471ee6097fae24069c72cffdc22a

Tree: aee6e1fdda76e737f40fe9c0baed36f86d909c3f

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: rip out multi-compilation-unit compiler-rt

After doing performance testing, it seems that multi-compilation-unit
compiler-rt did not bring the performance improvements that we expected
it to. The idea is that it makes linking faster, however, it incurred a
cost in the frontend that was not offset by any gains in linking.

Furthermore, the single-object compiler-rt (with -ffunction-sections and
--gc-sections) ends up being fewer bytes on disk and so it's actually
the same or faster linking speed than the multi-compilation-unit
version.

So we are planning to keep using single-compilation-unit compiler-rt for
the foreseeable future, but may experiment with this again in the
future, in which case this commit can be reverted.

```

## Parents

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

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