[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/04: gnu: mimalloc: Fix building on powerpc-linux.
From: |
guix-commits |
Subject: |
02/04: gnu: mimalloc: Fix building on powerpc-linux. |
Date: |
Wed, 15 Nov 2023 10:16:46 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 45ffa54bc3528aa6c21d8dc0f46016b1483b229f
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Nov 15 09:38:34 2023 +0200
gnu: mimalloc: Fix building on powerpc-linux.
* gnu/packages/c.scm (mimalloc)[arguments]: When building for
powerpc-linux add a configure-flag to use libatomic.
Change-Id: I41062686186640bc4c685a0ee5de1e613040dfb9
---
gnu/packages/c.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index ea58c68262..4b23015275 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -3,7 +3,7 @@
;;; Copyright © 2016, 2017, 2018, 2019, 2021 Ricardo Wurmus
<rekado@elephly.net>
;;; Copyright © 2018, 2020–2022 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018, 2019 Pierre Neidhardt <mail@ambrevar.xyz>
-;;; Copyright © 2019, 2020, 2022 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2019, 2020, 2022, 2023 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2019, 2021 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2019 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
@@ -1210,7 +1210,10 @@ Telemetry Transport (MQTT) publish-subscribe messaging
protocol.")
"19w0i28p6knjd192rrcw1ayc3x0qp6rcm48cwkls4kwn8fng81fj"))))
(build-system cmake-build-system)
(arguments
- `(#:build-type "Release"))
+ `(#:build-type "Release"
+ ,@(if (target-ppc32?)
+ `(#:configure-flags '("-DMI_USE_LIBATOMIC=ON"))
+ '())))
(synopsis "General purpose memory allocator")
(description "@code{mimalloc} is a drop-in replacement for @code{malloc}.")
(home-page "https://microsoft.github.io/mimalloc/")