petsc: fix petsc+debug to not reset COPTFLAGS - i.e use configure defaults '-g' (#10296)
This commit is contained in:
parent
d1bb9caba4
commit
8ca674a574
@ -195,10 +195,7 @@ def install(self, spec, prefix):
|
||||
'--download-hwloc=0',
|
||||
'CFLAGS=%s' % ' '.join(spec.compiler_flags['cflags']),
|
||||
'FFLAGS=%s' % ' '.join(spec.compiler_flags['fflags']),
|
||||
'CXXFLAGS=%s' % ' '.join(spec.compiler_flags['cxxflags']),
|
||||
'COPTFLAGS=',
|
||||
'FOPTFLAGS=',
|
||||
'CXXOPTFLAGS=']
|
||||
'CXXFLAGS=%s' % ' '.join(spec.compiler_flags['cxxflags'])]
|
||||
options.extend(self.mpi_dependent_options())
|
||||
options.extend([
|
||||
'--with-precision=%s' % (
|
||||
@ -209,6 +206,11 @@ def install(self, spec, prefix):
|
||||
'--with-debugging=%s' % ('1' if '+debug' in spec else '0'),
|
||||
'--with-64-bit-indices=%s' % ('1' if '+int64' in spec else '0')
|
||||
])
|
||||
if '+debug' not in spec:
|
||||
options.extend(['COPTFLAGS=',
|
||||
'FOPTFLAGS=',
|
||||
'CXXOPTFLAGS='])
|
||||
|
||||
# Make sure we use exactly the same Blas/Lapack libraries
|
||||
# across the DAG. To that end list them explicitly
|
||||
lapack_blas = spec['lapack'].libs + spec['blas'].libs
|
||||
|
Loading…
Reference in New Issue
Block a user