# add support for environment variables to control cache directories · gitcafe/zig

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

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

Visibility: public

Requested revision: 2759313263d58dba324788dbe346ed1506b239dc

Requested commit: 2759313263d58dba324788dbe346ed1506b239dc

Commit: 2759313263d58dba324788dbe346ed1506b239dc

Tree: d7cd349ebe71e091992de578ec548ca3a8990d1e

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
add support for environment variables to control cache directories

This commit adds:

ZIG_LOCAL_CACHE_DIR corresponding to --cache-dir
ZIG_GLOBAL_CACHE_DIR corresponding to --global-cache-dir
ZIG_LIB_DIR corresponding to --override-lib-dir

The main use case is for `zig cc` where we are bound by clang's CLI
options and need alternate channels to pass these configuration options.

```

## Parents

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

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