guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#51885] [PATCH 1/4] gnu: Add asmjit.


From: Raghav Gururajan
Subject: [bug#51885] [PATCH 1/4] gnu: Add asmjit.
Date: Tue, 30 Nov 2021 23:29:24 -0500

* gnu/packages/cpp.scm (asmjit): New variable.

Co-authored-by: jgart <jgart@dismail.de>
Co-authored-by: Julien Lepiller <julien@lepiller.eu>
Co-authored-by: Disseminate Dissent <disseminatedissent@protonmail.com>
---
 gnu/packages/cpp.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index e2f2279418..b8741a9be7 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -74,6 +74,38 @@ (define-module (gnu packages cpp)
   #:use-module (gnu packages web)
   #:use-module (gnu packages xml))
 
+(define-public asmjit
+  (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b")
+        (revision "0"))
+    (package
+      (name "asmjit")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+           (url "https://github.com/asmjit/asmjit";)
+           (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0skgccbpamcbg1byawfq5n6jzxgj64hnc7jznvk35nkskaaz1nlb"))))
+      (build-system cmake-build-system)
+      (arguments
+       `(#:configure-flags
+         (list
+          "-DASMJIT_TEST=TRUE")))
+      (home-page "https://asmjit.com/";)
+      (synopsis "Machine code generation for C++")
+      (description "AsmJit is a lightweight library for machine code generation
+written in C++ language.  It can generate machine code for X86 and X86_64
+architectures with the support for the whole instruction set from legacy MMX to
+the newest AVX-512 and AMX.  It has a type-safe API that allows C++ compiler to
+do semantic checks at compile-time even before the assembled code is generated
+or executed.  It also provides an optional register allocator that makes it 
easy
+to generate complex code without a significant development effort.")
+      (license license:zlib))))
+
 (define-public range-v3
   (package
     (name "range-v3")
-- 
2.34.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]