[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/17: gnu: xxhash: Detect vector instructions at run time.
From: |
guix-commits |
Subject: |
05/17: gnu: xxhash: Detect vector instructions at run time. |
Date: |
Mon, 29 Jun 2020 10:46:34 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 1d25cfbaf4b707f5af9aafe6ac3d8828c5b89f45
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Mon Jun 29 15:44:07 2020 +0200
gnu: xxhash: Detect vector instructions at run time.
* gnu/packages/digest.scm (xxhash)[arguments]: Set DISPATCH=1 make flag
on x86.
---
gnu/packages/digest.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/digest.scm b/gnu/packages/digest.scm
index 7adc12e..78eeb7e 100644
--- a/gnu/packages/digest.scm
+++ b/gnu/packages/digest.scm
@@ -21,7 +21,8 @@
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
- #:use-module (guix utils))
+ #:use-module (guix utils)
+ #:use-module (ice-9 match))
(define-public xxhash
(package
@@ -40,6 +41,11 @@
(arguments
`(#:make-flags
(list ,(string-append "CC=" (cc-for-target))
+ ,(match (or (%current-target-system)
+ (%current-system))
+ ;; Detect vector instruction set at run time.
+ ((or "i686-linux" "x86_64-linux") "DISPATCH=1")
+ (_ "DISPATCH=0"))
"XXH_FORCE_MEMORY_ACCESS=1" ; improved performance with GCC
(string-append "prefix=" (assoc-ref %outputs "out")))
#:phases
- branch master updated (4726020 -> c47485b), guix-commits, 2020/06/29
- 01/17: gnu: Add python-click@5., guix-commits, 2020/06/29
- 05/17: gnu: xxhash: Detect vector instructions at run time.,
guix-commits <=
- 02/17: gnu: vdirsyncer: Update to 0.16.8., guix-commits, 2020/06/29
- 04/17: gnu: xxhash: Update to 0.7.4., guix-commits, 2020/06/29
- 06/17: gnu: s-tui: Update to 1.0.1., guix-commits, 2020/06/29
- 08/17: gnu: stellarium: Update to 0.20.2., guix-commits, 2020/06/29
- 10/17: gnu: sparse: Update to 0.6.2., guix-commits, 2020/06/29
- 11/17: gnu: python-coverage: Update home page., guix-commits, 2020/06/29
- 12/17: gnu: rust-x11-dl: Update to 2.18.5., guix-commits, 2020/06/29
- 03/17: gnu: xxhash: Cross-compile., guix-commits, 2020/06/29
- 14/17: gnu: perl-dbix-class: Update to 0.082842., guix-commits, 2020/06/29
- 07/17: gnu: ansible: Update to 2.9.10., guix-commits, 2020/06/29