# build libuserland in cross compilation mode · gitcafe/zig

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

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

Visibility: public

Requested revision: ed419555229a6d93eb7b08950620f86641f44d92

Requested commit: ed419555229a6d93eb7b08950620f86641f44d92

Commit: ed419555229a6d93eb7b08950620f86641f44d92

Tree: 52d3131b1efcdf31bf9bcdd90e6ad1382beecb35

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
build libuserland in cross compilation mode

Previously libuserland was being built for the native target,
which could depend on native CPU features such as AVX. The
CI infrastructure is intending to create binaries that are
widely compatible and do not make use of specific CPU features.

There could be something to gain from enabling native CPU features
sometimes, by introducing a new cmake configuration option, but
since it's planned to eventually ship self-hosted rather than stage1,
I don't think it really matters.

closes #2348

```

## Parents

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

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