(address . guix-patches@gnu.org)(name . Andy Tai)(address . atai@atai.org)
* gnu/packages/assembly.scm (cpu-features): New variable.
Change-Id: I9f3e0340024dbdbfb6f2f2a7e0820d71e5e5ba84
---
gnu/packages/assembly.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Toggle diff (52 lines)
diff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm
index 3f1db2b67a..44efb67bc8 100644
--- a/gnu/packages/assembly.scm
+++ b/gnu/packages/assembly.scm
@@ -646,6 +646,43 @@ (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
+ ;; XXX: insists on using bundled googletest
+ (list
+ #:tests? #f
+ #:configure-flags #~(list "-DBUILD_TESTING=off")))
+ (home-page "https://github.com/google/cpu_features")
+ (synopsis "Cross platform C99 library to get cpu features at runtime")
+ (description
+ "Bcpu_features cross-platform C library to retrieve CPU features
+(such as available instructions) at runtime, and supports these CPU architecutres
+@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
--
2.34.1