dev-lang/zig: explicitly set locations for build cache

Useful for debugging and a little bit more deterministic than
before.

Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/33272
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Eric Joldasov
2023-10-22 23:22:29 +06:00
committed by Sam James
parent 2b7185f874
commit eded707d05
2 changed files with 8 additions and 0 deletions

View File

@@ -112,6 +112,10 @@ pkg_setup() {
}
src_configure() {
# Useful for debugging and a little bit more deterministic.
export ZIG_LOCAL_CACHE_DIR="${T}/zig-local-cache"
export ZIG_GLOBAL_CACHE_DIR="${T}/zig-global-cache"
local mycmakeargs=(
-DZIG_USE_CCACHE=OFF
-DZIG_SHARED_LLVM=ON

View File

@@ -108,6 +108,10 @@ pkg_setup() {
}
src_configure() {
# Useful for debugging and a little bit more deterministic.
export ZIG_LOCAL_CACHE_DIR="${T}/zig-local-cache"
export ZIG_GLOBAL_CACHE_DIR="${T}/zig-global-cache"
local mycmakeargs=(
-DZIG_USE_CCACHE=OFF
-DZIG_SHARED_LLVM=ON