summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2023-03-10 22:52:19 +0100
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2023-03-19 09:25:36 +0100
commitd59eb81b5c97aa53cdca357287332377c288fd8c (patch)
treef139d650699ba1142a0effb459f9af5f61989b58 /gnu/packages
parent34fed18169a5eae3169ff5fd2c43fe3af79e3b70 (diff)
downloadguix-d59eb81b5c97aa53cdca357287332377c288fd8c.tar.gz
gnu: zig: Build against a baseline CPU.
* gnu/packages/zig.scm (zig-0.10)[#:configure-flags]: Add
“-DZIG_TARGET_MCPU=baseline”.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/zig.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index 5414b5ba6e..2c89343cb1 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -56,6 +56,7 @@
                    '(string-append "-DZIG_TARGET_TRIPLE="
                                    (%current-target-system))
                    '())
+             (string-append "-DZIG_TARGET_MCPU=baseline")
              (string-append "-DZIG_LIB_DIR=" (assoc-ref %outputs "out")
                             "/lib/zig"))
        #:validate-runpath? #f       ; TODO: zig binary can't find ld-linux.