1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 13
13
python3Packages ,
14
14
15
15
# Build options
16
- petsc-optimized ? true ,
17
- petsc-scalar-type ? "real" ,
18
- petsc- precision ? "double" ,
16
+ debug ? false ,
17
+ scalarType ? "real" ,
18
+ precision ? "double" ,
19
19
mpiSupport ? true ,
20
20
fortranSupport ? true ,
21
21
pythonSupport ? false , # petsc python binding
@@ -162,16 +162,16 @@ stdenv.mkDerivation (finalAttrs: {
162
162
[
163
163
"--with-blas=1"
164
164
"--with-lapack=1"
165
- "--with-scalar-type=${ petsc-scalar-type } "
166
- "--with-precision=${ petsc- precision} "
165
+ "--with-scalar-type=${ scalarType } "
166
+ "--with-precision=${ precision } "
167
167
"--with-mpi=${ if mpiSupport then "1" else "0" } "
168
168
]
169
169
++ lib . optionals mpiSupport [
170
170
"--CC=mpicc"
171
171
"--with-cxx=mpicxx"
172
172
"--with-fc=mpif90"
173
173
]
174
- ++ lib . optionals petsc-optimized [
174
+ ++ lib . optionals ( ! debug ) [
175
175
"--with-debugging=0"
176
176
"COPTFLAGS=-O3"
177
177
"FOPTFLAGS=-O3"
@@ -194,7 +194,7 @@ stdenv.mkDerivation (finalAttrs: {
194
194
++ lib . optional withFftw "--with-fftw=1"
195
195
++ lib . optional withSuitesparse "--with-suitesparse=1" ;
196
196
197
- hardeningDisable = lib . optionals ( ! petsc-optimized ) [
197
+ hardeningDisable = lib . optionals debug [
198
198
"fortify"
199
199
"fortify3"
200
200
] ;
0 commit comments