summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2017-10-21 17:20:42 +0100
committerLudovic Courtès <ludo@gnu.org>2017-12-01 11:28:48 +0100
commitf1de0e37d579dc7834be0c9e80654e9f2067c3ed (patch)
tree2d4656441befc4639709a6f2af5f04b4b8e3c957 /gnu
parent6101cad4d19cf1c32d6abf7c9ef2a86ad9d986c5 (diff)
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 <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/simulation.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index de07b68440..a5b661e34d 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