[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch wip-zig-bootstrap updated: fixup! gnu: zig: Build reproducibly.
From: |
guix-commits |
Subject: |
branch wip-zig-bootstrap updated: fixup! gnu: zig: Build reproducibly. |
Date: |
Tue, 19 Nov 2024 11:26:04 -0500 |
This is an automated email from the git hooks/post-receive script.
hako pushed a commit to branch wip-zig-bootstrap
in repository guix.
The following commit(s) were added to refs/heads/wip-zig-bootstrap by this push:
new fdb734c381 fixup! gnu: zig: Build reproducibly.
fdb734c381 is described below
commit fdb734c3817cad9a3f613050135f31a4d660a7fd
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Wed Nov 20 00:12:45 2024 +0800
fixup! gnu: zig: Build reproducibly.
Change-Id: I2d01d4eb84a844525f40a307889eac0aecf06ad3
---
guix/build/zig-utils.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/guix/build/zig-utils.scm b/guix/build/zig-utils.scm
index 2e592ac7ea..bbbad5fc29 100644
--- a/guix/build/zig-utils.scm
+++ b/guix/build/zig-utils.scm
@@ -30,6 +30,14 @@
;; Set cache dir, otherwise Zig looks for `$HOME/.cache'.
(setenv "ZIG_GLOBAL_CACHE_DIR" "zig-cache")
+ ;; XXX: Required for unpatched intermediade versions?
+ ;; Set CC, since the stage 2 zig relies on it to find the libc
+ ;; installation, and otherwise silently links against its own.
+ (setenv "CC"
+ (if target
+ (string-append target "-gcc")
+ "gcc"))
+
(setenv "PKG_CONFIG"
(if target
(string-append target "-pkg-config")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch wip-zig-bootstrap updated: fixup! gnu: zig: Build reproducibly.,
guix-commits <=