From 4e1160e837db7c1cf05894fd373f2727e1361ac5 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 16 Apr 2026 09:43:16 +0200 Subject: [PATCH] gnu: r-bpcells: Build with SSE2 for on x86 32-bit platforms. * gnu/packages/bioinformatics.scm (r-bpcells)[arguments]: Conditionally add phase 'require-sse2. Change-Id: I4927d9701e47dc34cc435d24c64a3043ad984f0d --- gnu/packages/bioinformatics.scm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index bd9fe2eff56..8140c51d83a 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -931,9 +931,15 @@ suite native in R.") (arguments (list #:phases - '(modify-phases %standard-phases + `(modify-phases %standard-phases (add-after 'unpack 'chdir - (lambda _ (chdir "r")))))) + (lambda _ (chdir "r"))) + ,@(if (target-x86-32?) + '((add-after 'chdir 'require-sse2 + ;; This avoids falling back to the scalar backend in + ;; highway, which fails to build. + (lambda _ (setenv "CFLAGS" "-msse2")))) + '())))) (propagated-inputs (list r-dplyr r-ggplot2