# stage1: add linux XDG Base Directory support · gitcafe/zig

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

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

Visibility: public

Requested revision: 10046f9a52c089c656bfd4578e4ef17671ff1f75

Requested commit: 10046f9a52c089c656bfd4578e4ef17671ff1f75

Commit: 10046f9a52c089c656bfd4578e4ef17671ff1f75

Tree: 4b63ae0994061631a051a18895da03aa28a80ae7

Author: Michael Dusan

Committer: Andrew Kelley

## Message

```
stage1: add linux XDG Base Directory support

- define zig global cache based on XDG spec:

    if env XDG_CACHE_HOME {
        "$XDG_CACHE_HOME/zig"
    } else {
        "$HOME/.cache/zig"
    }

- old definition "$HOME/.local/share/zig" is retired
- closes #3573

```

## Parents

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

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