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>master
parent
6101cad4d1
commit
f1de0e37d5
|
@ -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
|
||||
|
|
Reference in New Issue