# quick fix: add \-mcpu=baseline support to zig0 · gitcafe/zig

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

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

Visibility: public

Requested revision: e381a42de9c0f0c5439a926b0ac99026a0373f49

Requested commit: e381a42de9c0f0c5439a926b0ac99026a0373f49

Commit: e381a42de9c0f0c5439a926b0ac99026a0373f49

Tree: 97efb484ce5823d10cc43d24d39b4a17a72896d4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
quick fix: add -mcpu=baseline support to zig0

When the build.zig logic to build libzigstage2 was converted to a cmake
command, it neglected to use baseline CPU features rather than compiling
with native features.

This adds a hard coded flag `-mcpu=baseline` which can be used to detect
the native target, but mark it as non-native so that it does not get the
CPU features specific to the host used to compile libzigstage2.

Full `-mcpu` support is happening in the upcoming pull request #4509,
and so this "quick fix" will be cleaned up in that branch, before it is
merged to master.

closes #4506

```

## Parents

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

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