unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#71597] [PATCH] gnu: Add cpu-features.
@ 2024-06-16 17:24 Andy Tai
  2024-06-16 18:34 ` Vincent Legoll
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Andy Tai @ 2024-06-16 17:24 UTC (permalink / raw)
  To: 71597; +Cc: Andy Tai

* gnu/packages/assembly.scm (cpu-features): New variable.

Change-Id: I9f3e0340024dbdbfb6f2f2a7e0820d71e5e5ba84
---
 gnu/packages/assembly.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

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





^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-06-26 15:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-16 17:24 [bug#71597] [PATCH] gnu: Add cpu-features Andy Tai
2024-06-16 18:34 ` Vincent Legoll
2024-06-16 23:02 ` [bug#71597] [PATCH v2] " Andy Tai
2024-06-17  0:32 ` [bug#71597] [PATCH v3] " Andy Tai
2024-06-26 14:33 ` bug#71597: [PATCH] " Guillaume Le Vaillant

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).