# zig build: adjust DESTDIR logic · gitcafe/zig

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

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

Visibility: public

Requested revision: d6d0bb054219da26a55f880f48f00902a4fbaf56

Requested commit: d6d0bb054219da26a55f880f48f00902a4fbaf56

Commit: d6d0bb054219da26a55f880f48f00902a4fbaf56

Tree: 23e21f3d83dad2e433768247acc46f7bfbded16f

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
zig build: adjust DESTDIR logic

now if DESTDIR is provided then the default install prefix is /usr.
otherwise the default install prefix is still zig-cache directly.

DESTDIR is prepended to the prefix to match what make install does.

```

## Parents

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

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