summaryrefslogtreecommitdiff
path: root/gnu/packages/cpp.scm
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2023-11-04 07:43:44 +0100
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2023-11-04 07:43:44 +0100
commit72e886328c14c832b2ed71c400069b63852ee18d (patch)
tree92b4f32df417af5cbb9433386d996ec7d17522e9 /gnu/packages/cpp.scm
parent1c41971e721dde203580ec17899beae546f1133a (diff)
parentf54f36b363a86bb033275e3a0594974d3d91bd53 (diff)
Merge branch 'master' into gnome-team
Change-Id: I88d3789460d1a89917451d80405d89a2824006ac
Diffstat (limited to 'gnu/packages/cpp.scm')
-rw-r--r--gnu/packages/cpp.scm17
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index d89fcaeb1e..0ce60c49de 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -1112,6 +1112,10 @@ portable applications targeting all major HPC platforms. For that purpose it
provides abstractions for both parallel execution of code and data management.
Kokkos is designed to target complex node architectures with N-level memory
hierarchies and multiple types of execution resources.")
+
+ ;; Code exhibits integer size mismatches when compiled on 32-bit systems.
+ (supported-systems %64bit-supported-systems)
+
(license license:asl2.0))) ; With LLVM exception
(define-public tweeny
@@ -1250,12 +1254,25 @@ Google's C++ code base.")
(number->string version))
#$flags))))))))
+(define (make-static-abseil-cpp version)
+ (let ((base abseil-cpp))
+ (hidden-package
+ (package/inherit base
+ (arguments
+ (substitute-keyword-arguments (package-arguments base)
+ ((#:configure-flags flags)
+ #~(cons* "-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
+ (delete "-DBUILD_SHARED_LIBS=ON" #$flags)))))))))
+
(define-public abseil-cpp-cxxstd17
(abseil-cpp-for-c++-standard 17)) ;XXX: the default with GCC 11?
(define-public abseil-cpp-cxxstd11
(abseil-cpp-for-c++-standard 11))
+(define-public static-abseil-cpp
+ (make-static-abseil-cpp abseil-cpp))
+
(define-public pegtl
(package
(name "pegtl")