all messages for Guix-related lists mirrored at yhetil.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

* [bug#71597] [PATCH] gnu: Add cpu-features.
  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
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Vincent Legoll @ 2024-06-16 18:34 UTC (permalink / raw)
  To: 71597

Hello,

the description has "Bcpu_features", is that typo or markup ?
And "architecutres" typo

-- 
Vincent Legoll




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

* [bug#71597] [PATCH v2] gnu: Add cpu-features.
  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 ` Andy Tai
  2024-06-17  0:32 ` [bug#71597] [PATCH v3] " Andy Tai
  2024-06-26 14:33 ` bug#71597: [PATCH] " Guillaume Le Vaillant
  3 siblings, 0 replies; 5+ messages in thread
From: Andy Tai @ 2024-06-16 23:02 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..a6965c8f7e 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
+     (list
+      #:tests? #f
+      #:configure-flags #~(list "-DBUILD_TESTING=off")))
+    ;; XXX: insists on using bundled googletest
+    (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





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

* [bug#71597] [PATCH v3] gnu: Add cpu-features.
  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 ` Andy Tai
  2024-06-26 14:33 ` bug#71597: [PATCH] " Guillaume Le Vaillant
  3 siblings, 0 replies; 5+ messages in thread
From: Andy Tai @ 2024-06-17  0:32 UTC (permalink / raw)
  To: 71597; +Cc: Andy Tai

* 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





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

* bug#71597: [PATCH] gnu: Add cpu-features.
  2024-06-16 17:24 [bug#71597] [PATCH] gnu: Add cpu-features Andy Tai
                   ` (2 preceding siblings ...)
  2024-06-17  0:32 ` [bug#71597] [PATCH v3] " Andy Tai
@ 2024-06-26 14:33 ` Guillaume Le Vaillant
  3 siblings, 0 replies; 5+ messages in thread
From: Guillaume Le Vaillant @ 2024-06-26 14:33 UTC (permalink / raw)
  To: Andy Tai; +Cc: 71597-done

[-- Attachment #1: Type: text/plain, Size: 67 bytes --]

Patch applied as 8c9902b131e06b1b0645698135fdabeacb381983.
Thanks.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.