[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/05: gnu: openfoam: Clean up to reduce closure.
From: |
Ludovic Courtès |
Subject: |
05/05: gnu: openfoam: Clean up to reduce closure. |
Date: |
Fri, 1 Dec 2017 05:30:01 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit f1de0e37d579dc7834be0c9e80654e9f2067c3ed
Author: Dave Love <address@hidden>
Date: Sat Oct 21 17:20:42 2017 +0100
gnu: openfoam: Clean up to reduce closure.
This saves ~1GB.
* gnu/packages/simulation.scm (openfoam)[outputs]: Add debug.
[arguments]: Clean up .o and src after build.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/simulation.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index de07b68..a5b661e 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -84,6 +84,8 @@
`(("gzip" ,gzip)
("gnuplot" ,gnuplot)
("openmpi" ,openmpi)))
+ (outputs '("debug" ;~60MB
+ "out"))
(arguments
`( ;; Executable files and shared libraries are located in the 'platforms'
;; subdirectory.
@@ -171,6 +173,15 @@
(("lockDir=.*$")
"lockDir=$HOME/.$WM_PROJECT/.wmake\n"))
#t))
+ (add-after 'build 'cleanup
+ ;; Avoid unncessary, voluminous object and dep files.
+ (lambda _
+ (delete-file-recursively
+ "platforms/linux64GccDPInt32Opt/src")
+ (delete-file-recursively
+ "platforms/linux64GccDPInt32OptSYSTEMOPENMPI")
+ (for-each delete-file (find-files "." "\\.o$"))
+ #t))
(replace 'install
(lambda _
;; use 'OpenFOAM-version' convention