[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#71597] [PATCH v3] gnu: Add cpu-features.
From: |
Andy Tai |
Subject: |
[bug#71597] [PATCH v3] gnu: Add cpu-features. |
Date: |
Sun, 16 Jun 2024 17:32:57 -0700 |
* gnu/packages/assembly.scm (cpu-features): New variable.
Change-Id: I9f3e0340024dbdbfb6f2f2a7e0820d71e5e5ba84
---
gnu/packages/assembly.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm
index 3f1db2b67a..fb8ef53901 100644
--- a/gnu/packages/assembly.scm
+++ b/gnu/packages/assembly.scm
@@ -646,6 +646,44 @@ (define-public neon2sse
files.")
(license license:bsd-2))))
+(define-public cpu-features
+ (package
+ (name "cpu-features")
+ (version "0.9.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/google/cpu_features")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32 "0297li3408zm1dqnibaasrb51vs7n7iscnxsji3b78g0pir7jwxr"))
+ (file-name (git-file-name name version))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:tests? #f
+ #:configure-flags #~(list
+ "-DBUILD_TESTING=off" ;; XXX: insists on using bundled googletest
+ "-DBUILD_SHARED_LIBS=ON")))
+ (home-page "https://github.com/google/cpu_features")
+ (synopsis "Cross platform C99 library to get cpu features at runtime")
+ (description
+ "Cpu_features is a cross-platform C library to retrieve CPU features
+(such as available instructions) at runtime, and supports these CPU
architectures
+@itemize
+@item x86-64
+@item AArch64
+@item ARM
+@item MIPS
+@item POWER
+@item RISC-V
+@item LoongArch
+@item S390x
+@end itemize")
+ (license license:asl2.0)))
+
+
(define-public blinkenlights
(package
(name "blinkenlights")
base-commit: 612e4dd98f7d1d015e405af9d029bede3fe3c280
prerequisite-patch-id: 2b0a2ef34ee62e6c6e65551b932237957868bb00
--
2.34.1