From eded707d05b3a2ad50ee8c5c9682cd9617bf2a92 Mon Sep 17 00:00:00 2001 From: Eric Joldasov Date: Sun, 22 Oct 2023 23:22:29 +0600 Subject: [PATCH] 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 Closes: https://github.com/gentoo/gentoo/pull/33272 Signed-off-by: Sam James --- dev-lang/zig/zig-0.11.0-r1.ebuild | 4 ++++ dev-lang/zig/zig-9999.ebuild | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/dev-lang/zig/zig-0.11.0-r1.ebuild b/dev-lang/zig/zig-0.11.0-r1.ebuild index 90ffaa485d7e6..633b6e1c63999 100644 --- a/dev-lang/zig/zig-0.11.0-r1.ebuild +++ b/dev-lang/zig/zig-0.11.0-r1.ebuild @@ -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 diff --git a/dev-lang/zig/zig-9999.ebuild b/dev-lang/zig/zig-9999.ebuild index 026d60e5a8541..9605234cfc43f 100644 --- a/dev-lang/zig/zig-9999.ebuild +++ b/dev-lang/zig/zig-9999.ebuild @@ -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