# Fix cross-compiling the zig compiler · gitcafe/zig

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

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

Visibility: public

Requested revision: 75db8d9e2cdf0d0dff2f287cce30f1b727dc2d54

Requested commit: 75db8d9e2cdf0d0dff2f287cce30f1b727dc2d54

Commit: 75db8d9e2cdf0d0dff2f287cce30f1b727dc2d54

Tree: be04e1dfd2aa73ce986f02f8bdc95200b86048f4

Author: Timon Kruiper

Committer: Andrew Kelley

## Message

```
Fix cross-compiling the zig compiler

zig0 is only used for building objects, thus it has no options like
`build-exe/obj`. But when cross-compiling, we have a working zig
compiler on the host, thus we need to pass `build-obj` to the zig compiler.

```

## Parents

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

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