summary refs log tree commit diff
path: root/gnu/packages/zig.scm
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2023-11-18 17:51:09 +0100
committerEfraim Flashner <efraim@flashner.co.il>2023-12-03 09:54:03 +0200
commita8a7153996ebce795bbbefab01c38852c545f87e (patch)
treed5b1c4f93b0947a19b99b26b34a4b6dc5d411d80 /gnu/packages/zig.scm
parent766946d663bf0bfaf5d75eb2d8bc23205376eadd (diff)
downloadguix-a8a7153996ebce795bbbefab01c38852c545f87e.tar.gz
gnu: zig: Build with baseline cpu by default.
* gnu/packages/patches/zig-use-baseline-cpu-by-default.patch: Add file.
* gnu/packages/zig.scm (zig-0.10.1): Apply patch above.
* gnu/local/mk (dist_patch_DATA): Register it.

Change-Id: I40bd28071c97c0dd0a907c704072b52b26d2de28
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/zig.scm')
-rw-r--r--gnu/packages/zig.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index 08ee650d8b..853b5766c2 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -146,7 +146,8 @@ toolchain.  Among other features it provides
        (file-name (git-file-name name version))
        (sha256
         (base32 "1sh5xjsksl52i4cfv1qj36sz5h0ln7cq4pdhgs3960mk8a90im7b"))
-       (patches (search-patches "zig-do-not-link-against-librt.patch"))))
+       (patches (search-patches "zig-do-not-link-against-librt.patch"
+                                "zig-use-baseline-cpu-by-default.patch"))))
     (arguments
      (substitute-keyword-arguments (package-arguments zig-0.9)
        ((#:configure-flags flags ''())