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.
2759313263Andrew Kelley committed on 12/8/2020, 9:39:17 PMparentc796c45
1 file changedLine totals unavailable