# compiler-rt: move strlen from libzigc to here · gitcafe/zig

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

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

Visibility: public

Requested revision: e9ac2ce1167f0f2f86d824549b8ab04d1028129c

Requested commit: e9ac2ce1167f0f2f86d824549b8ab04d1028129c

Commit: e9ac2ce1167f0f2f86d824549b8ab04d1028129c

Tree: 4a0323bfbcd819650b1701bdcca29cb676d5be7c

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
compiler-rt: move strlen from libzigc to here

LLVM 21 has started recognizing strlen-like idioms and optimizing them to strlen
calls, so we need this function provided in compiler-rt for libc-less
compilations.

```

## Parents

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

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