guix-commits
[Top][All Lists]
Advanced

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

09/45: gnu: Add libomp-12.


From: guix-commits
Subject: 09/45: gnu: Add libomp-12.
Date: Thu, 4 Aug 2022 06:07:07 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 68dfb535d39fe89679e05800e7a2a8f7499332e2
Author: Greg Hogan <code@greghogan.com>
AuthorDate: Wed Jul 20 15:08:57 2022 +0000

    gnu: Add libomp-12.
    
    * gnu/packages/llvm.scm (libomp-12): New variable.
    
    Signed-off-by: Ludovic Court├Ęs <ludo@gnu.org>
---
 gnu/packages/llvm.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 4d6747327a..b81b5c0394 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -855,6 +855,27 @@ with that of libgomp, the GNU Offloading and Multi 
Processing Library.")
                       (base32
                        
"1r9a4fdz9ci58b5z2inwvm4z4cdp6scrivnaw05dggkxz7yrwrb5")))))
 
+(define-public libomp-12
+  (package
+    (inherit libomp-13)
+    (version (package-version llvm-12))
+    (source (origin
+              (method url-fetch)
+              (uri (llvm-uri "openmp" version))
+              (sha256
+               (base32
+                "14dh0r6h2xh747ffgnsl4z08h0ri04azi9vf79cbz7ma1r27kzk0"))
+              (file-name (string-append "libomp-" version ".tar.xz"))))
+    (arguments
+     '(#:configure-flags '("-DLIBOMP_USE_HWLOC=ON"
+                           "-DOPENMP_TEST_C_COMPILER=clang"
+                           "-DOPENMP_TEST_CXX_COMPILER=clang++")
+       #:test-target "check-libomp"))
+    (native-inputs
+     (modify-inputs (package-native-inputs libomp-13)
+       (replace "clang" clang-12)
+       (replace "llvm" llvm-12)))))
+
 (define-public clang-toolchain-12
   (make-clang-toolchain clang-12))
 



reply via email to

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