# std.Build: revert \-\-host-target, \-\-host-cpu, \-\-host-dynamic-linker · gitcafe/zig

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

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

Visibility: public

Requested revision: 22a97cd235b5a2ffa9882c267b365c463b38e5ba

Requested commit: 22a97cd235b5a2ffa9882c267b365c463b38e5ba

Commit: 22a97cd235b5a2ffa9882c267b365c463b38e5ba

Tree: 82f9feca1f1f9b276953d0d0a8a45c3130e475f9

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Build: revert --host-target, --host-cpu, --host-dynamic-linker

This is a partial revert of 105db13536b4dc2affe130cb8d2eee6c97c89bcd.

As we learned from Void Linux packaging, these options are not actually
helpful since the distribution package manager may very well want to
cross-compile the packages that it is building.

So, let's not overcomplicate things. There are already the standard
options: -Dtarget, -Dcpu, and -Ddynamic-linker.

These options are generally provided when the project generates machine
code artifacts, however, there may be a project that does no such thing,
in which case it makes sense for these options to be missing. The Zig
Build System is a general-purpose build system, after all.

```

## Parents

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

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