andreas pushed a commit to branch master
in repository guix.

commit 3489c0995c983a3ccb6e2aca1637be9a9d641be4
Author: Luca Cirrottola <[email protected]>
AuthorDate: Mon Mar 31 12:44:35 2025 +0200

    gnu: petsc: Activate higher compiler optimization.
    
    * gnu/packages/maths.scm (petsc)[arguments]<#:configure-flags>: Add
    compiler optimization flags.
    
    Change-Id: Iaadb462e002615448014db44248b0c116b246150
    Signed-off-by: Andreas Enge <[email protected]>
---
 gnu/packages/maths.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 74c486b38a..db05379749 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -67,6 +67,7 @@
 ;;; Copyright © 2024 Foundation Devices, Inc. <[email protected]>
 ;;; Copyright © 2024, 2025 Artyom V. Poptsov <[email protected]>
 ;;; Copyright © 2024 Zheng Junjie <[email protected]>
+;;; Copyright © 2025 Luca Cirrottola <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3658,7 +3659,10 @@ September 2004}")
       #:test-target "test"
       #:parallel-build? #f             ; build is parallel by default
       #:configure-flags
-      #~(list "--with-mpi=0"
+      #~(list "COPTFLAGS=-g -O3"
+              "CXXOPTFLAGS=-g -O3"
+              "FOPTFLAGS=-g -O3"
+              "--with-mpi=0"
               "--with-openmp=1"
               "--with-openblas=1"
               (string-append "--with-openblas-dir="

Reply via email to