# tools/update_cpu_features: better patching API · gitcafe/zig

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

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

Visibility: public

Requested revision: e02acc028825ec83951946e4947883c2c96211ce

Requested commit: e02acc028825ec83951946e4947883c2c96211ce

Commit: e02acc028825ec83951946e4947883c2c96211ce

Tree: 9318e3538cb165e831d2a8518ffadab0eb7656ff

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
tools/update_cpu_features: better patching API

With this change, added & modified cpus & features participate in the
same pruning system, and sorting takes into account the zig name, not
the pre-modified llvm name.

The modified target files in this commit are due to the improved
sorting and pruning.

The script now fully supports extra cpus & features.

```

## Parents

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

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