# make \`crc32\` a featdep of \`sse4.2\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 9e17e097e59adfc31d746634cfe576f6420ec070

Requested commit: 9e17e097e59adfc31d746634cfe576f6420ec070

Commit: 9e17e097e59adfc31d746634cfe576f6420ec070

Tree: 8ec3613438b3b6f356abdc6839ae5ba69f04619c

Author: David Rubin

Committer: David Rubin

## Message

```
make `crc32` a featdep of `sse4.2`

To my knowledge there isn't an implementation of `sse4.2` that doesn't have `crc32`.
The Clang driver also sets `crc32` to be implicitly enabled when an explicit `-crc32`
wasn't provided. This matches that behaviour.

We need this behaviour to compile libraries like `rocksdb` which currently guard against
`crc32` intrinsics by checking for `sse4.2`.

```

## Parents

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

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