aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/zig-use-baseline-cpu-by-default.patch
blob: be78d9c6c7018e911d5ce1936dcdcdda76dd4d8a (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 1dc188129950031243c5a0c80ec2562fab8ec549 Mon Sep 17 00:00:00 2001
From: Ekaitz Zarraga <ekaitz@elenq.tech>
Date: Sat, 18 Nov 2023 15:04:16 +0100
Subject: [PATCH] Use `baseline` cpu by default.

This helps Guix tune the package later. Tunning will only add
`-Dcpu=whatever` which should override the standard behaviour.

Zig by default uses `native`, which interferes with our build process.
In our previous zig-build-system we chose to add `-Dcpu=baseline` flag
in each `zig build` execution, but that doesn't allow us to tune the
package later. Tunning is only designed to add extra flags in the
command line call, and we already had one set for the baseline case.
With this patch we set the standard behavior to `baseline` so we don't
need to add the `-Dcpu=baseline` flag in the zig-build-system and we can
tune with no issues.
---
 lib/std/zig/CrossTarget.zig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/zig/CrossTarget.zig b/lib/std/zig/CrossTarget.zig
index 6c59a4a3a..f5ec065fe 100644
--- a/lib/std/zig/CrossTarget.zig
+++ b/lib/std/zig/CrossTarget.zig
@@ -12,7 +12,7 @@ const mem = std.mem;
 /// `null` means native.
 cpu_arch: ?Target.Cpu.Arch = null,
 
-cpu_model: CpuModel = CpuModel.determined_by_cpu_arch,
+cpu_model: CpuModel = CpuModel.baseline,
 
 /// Sparse set of CPU features to add to the set from `cpu_model`.
 cpu_features_add: Target.Cpu.Feature.Set = Target.Cpu.Feature.Set.empty,
-- 
2.41.0

03-31 14:16:13 +0200'>2023-03-31gnu: Replace all uses of atk by at-spi2-core....* gnu/packages/animation.scm (gnash) * gnu/packages/chromium.scm (ungoogled-chromium) * gnu/packages/crates-gtk.scm (rust-atk-sys-0.14, rust-atk-sys-0.10, rust-atk-0.14, rust-gtk-0.14) * gnu/packages/gimp.scm (gimp) * gnu/packages/gnome.scm (evince, glade3, clutter, totem, rhythmbox, mutter, ghex): * gnu/packages/graphviz.scm (xdot) * gnu/packages/gtk.scm (gtk+-2, gtk+, guile-gnome, atkmm) * gnu/packages/mate.scm (mate-applets, atril, mate-control-center, mate-calc, mate-utils, eom, pluma) * gnu/packages/messaging.scm (dino) * gnu/packages/qt.scm (qtwebengine-5) * gnu/packages/rust-apps.scm (alfis) * gnu/packages/vim.scm (vim-full) * gnu/packages/vnc.scm (remmina) * gnu/packages/web.scm (castor): Replace atk by at-spi2-core. Signed-off-by: Guillaume Le Vaillant <glv@posteo.net> Josselin Poiret 2023-02-25gnu: ungoogled-chromium: Adapt patches....* gnu/packages/chromium.scm (%debian-revision): Move to a later release for Debian patches. (%ungoogled-origin): Update hash accordingly. (%debian-patches): Enable "fixes/clang-and-gcc11.patch". Andreas Enge 2023-01-30Merge remote-tracking branch 'origin/master' into core-updates... Conflicts: doc/guix.texi gnu/local.mk gnu/packages/admin.scm gnu/packages/base.scm gnu/packages/chromium.scm gnu/packages/compression.scm gnu/packages/databases.scm gnu/packages/diffoscope.scm gnu/packages/freedesktop.scm gnu/packages/gnome.scm gnu/packages/gnupg.scm gnu/packages/guile.scm gnu/packages/inkscape.scm gnu/packages/llvm.scm gnu/packages/openldap.scm gnu/packages/pciutils.scm gnu/packages/ruby.scm gnu/packages/samba.scm gnu/packages/sqlite.scm gnu/packages/statistics.scm gnu/packages/syndication.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/version-control.scm gnu/packages/xml.scm guix/build-system/copy.scm guix/scripts/home.scm Efraim Flashner 2023-01-26gnu: ungoogled-chromium: Update to 109.0.5414.119-1....* gnu/packages/chromium.scm (%chromium-version): Set to 109.0.5414.119. (%ungoogled-origin): Update hash. (ungoogled-chromium)[source]: Likewise. [arguments]: Use delete-file-recursively instead of rmdir for compatibility with downstream versions. Remove unused binding. Marius Bakke 2023-01-13gnu: ungoogled-chromium: Update to 109.0.5414.74-1....* gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for M109. (%chromium-version): Set to 109.0.5414.74. (%arch-revision): Bump to latest. (%arch-patches): Add one patch. (%ungoogled-origin): Update hash. (ungoogled-chromium)[source]: Likewise. [arguments]: Disable H264 for WebRTC. Delete one directory. Remove obsolete substitution. [native-inputs]: Add PYTHON-PYYAML. Marius Bakke 2023-01-08gnu: pipewire: Switch default to 0.3....* gnu/packages/linux.scm (pipewire): Switch to pipewire 0.3. (pipewire-0.3): Remove variable. (wireplumber): Replace all pipewire-0.3 by pipewire. * gnu/packages/audio.scm (qpwgraph): Ditto. * gnu/packages/chromium.scm (ungoogled-chromium): Ditto. * gnu/packages/freedesktop.scm (weston, xdg-desktop-portal, xdg-desktop-portal-wlr): Ditto. * gnu/packages/gnome.scm (mutter): Ditto. * gnu/packages/kde-systemtools.scm (krfb): Ditto. * gnu/packages/telegram.scm (webrtc-for-telegram-desktop): Ditto. * gnu/packages/video.scm (obs): Ditto. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Brendan Tildesley 2022-12-17gnu: ungoogled-chromium: Update to 108.0.5359.124-1....* gnu/packages/chromium.scm (%chromium-version): Set to 108.0.5359.124. (%ungoogled-origin, ungoogled-chromium): Update hashes. Marius Bakke 2022-12-12gnu: ungoogled-chromium: Build with ffmpeg@4....This is a follow-up to commit 79564bf9977ebba0b31d8dc291eb039142f51f68. * gnu/packages/chromium.scm (ungoogled-chromium)[inputs]: Change from FFMPEG to FFFMPEG-4. Marius Bakke 2022-12-08gnu: ungoogled-chromium: Remove obsolete workaround....* gnu/packages/chromium.scm (ungoogled-chromium)[version]: Remove conditional. Marius Bakke 2022-12-08gnu: ungoogled-chromium: Update to 108.0.5359.98-1....* gnu/packages/chromium.scm (%chromium-version): Set to 108.0.5359.98. (%ungoogled-origin, ungoogled-chromium): Update hashes. Marius Bakke 2022-12-03gnu: ungoogled-chromium: Update to 108.0.5359.94-1....* gnu/packages/chromium.scm (%chromium-version): Set to 108.0.5359.94. (%ungoogled-origin, ungoogled-chromium): Update hashes. Marius Bakke 2022-12-02gnu: ungoogled-chromium: Use git tag in ungoogled origin....* gnu/packages/chromium.scm (%ungoogled-origin)[uri]: Use %UNGOOGLED-REVISION instead of commit identifier. Marius Bakke 2022-12-02gnu: ungoogled-chromium: Update to 108.0.5359.71-1....* gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for M108. (%chromium-version): Set to 108.0.5359.71-1. (%arch-revision): Bump to newer commit. (%ungoogled-origin): Update hash. (%gcc-patches): Remove. (%reverse-patches): Remove one patch. (%arch-patches): New variable. (%patches): New variable. (ungoogled-chromium-snippet): Apply %PATCHES instead of individual variables. (ungoogled-chromium)[source]: Update hash. [arguments]: Adjust configure flag. [inputs]: Change from HARFBUZZ-3 to HARFBUZZ-5. Marius Bakke 2022-12-02gnu: ungoogled-chromium: Generalize OpenJPEG substitution....* gnu/packages/chromium.scm (ungoogled-chromium)[arguments]: Don't hard code openjpeg version. Marius Bakke 2022-11-27gnu: ungoogled-chromium: Update to 107.0.5304.121-1....* gnu/packages/chromium.scm (%chromium-version): Set to 107.0.5304.121. (%ungoogled-origin, ungoogled-chromium): Update hashes. Marius Bakke 2022-11-17gnu: ungoogled-chromium: Build with Clang 15....* gnu/packages/chromium.scm (ungoogled-chromium)[arguments]: Remove obsolete compiler flags. [native-inputs]: Change from CLANG-14 and LLD-AS-LD-WRAPPER to CLANG-15 and LLD-AS-LD-WRAPPER-15. Marius Bakke 2022-11-17gnu: ungoogled-chromium-wayland: Use PipeWire by default....* gnu/packages/chromium.scm (ungoogled-chromium/wayland)[arguments]<#:builder>: Add --enable-features=WebRTCPipeWireCapture to wrapping executable. Andrew Tropin 2022-11-11gnu: ungoogled-chromium: Update to 107.0.5304.110-1....* gnu/packages/chromium.scm (%chromium-version): Set to 107.0.5304.110. (%ungoogled-origin, ungoogled-chromium): Update hashes. Marius Bakke 2022-11-03gnu: ungoogled-chromium: Update to 107.0.5304.87-1....* gnu/packages/chromium.scm (%chromium-version): Set to 107.0.5304.87. (%ungoogled-origin, ungoogled-chromium): Update hashes. Marius Bakke 2022-10-27gnu: ungoogled-chromium: Update to 107.0.5304.68-1....* gnu/packages/chromium.scm (%preserved-third-party-files): Adjust for M107. (%chromium-version): Set to 107.0.5304.68. (%ungoogled-origin): Update hash. (%chromium-gcc-patchset, gcc-patch): Remove. (%gcc-patches): Empty list. (ungoogled-chromium)[source]: Update hash. [arguments]: Add clang_base_path and use_system_libwayland_server to #:configure-flags. Adjust substitutions. [inputs]: Add QTBASE-5. Marius Bakke