mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
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>
This commit is contained in:
parent
6101cad4d1
commit
f1de0e37d5
1 changed files with 11 additions and 0 deletions
|
@ -84,6 +84,8 @@ (define-public openfoam
|
||||||
`(("gzip" ,gzip)
|
`(("gzip" ,gzip)
|
||||||
("gnuplot" ,gnuplot)
|
("gnuplot" ,gnuplot)
|
||||||
("openmpi" ,openmpi)))
|
("openmpi" ,openmpi)))
|
||||||
|
(outputs '("debug" ;~60MB
|
||||||
|
"out"))
|
||||||
(arguments
|
(arguments
|
||||||
`( ;; Executable files and shared libraries are located in the 'platforms'
|
`( ;; Executable files and shared libraries are located in the 'platforms'
|
||||||
;; subdirectory.
|
;; subdirectory.
|
||||||
|
@ -171,6 +173,15 @@ (define-public openfoam
|
||||||
(("lockDir=.*$")
|
(("lockDir=.*$")
|
||||||
"lockDir=$HOME/.$WM_PROJECT/.wmake\n"))
|
"lockDir=$HOME/.$WM_PROJECT/.wmake\n"))
|
||||||
#t))
|
#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
|
(replace 'install
|
||||||
(lambda _
|
(lambda _
|
||||||
;; use 'OpenFOAM-version' convention
|
;; use 'OpenFOAM-version' convention
|
||||||
|
|
Loading…
Reference in a new issue