packages/cp2k: build with -ggdb with GNU for backtraces
This commit is contained in:
parent
f343d6fc68
commit
4b3e43cc64
1 changed files with 5 additions and 1 deletions
|
@ -174,7 +174,11 @@ def edit(self, spec, prefix):
|
||||||
cxxflags.append('-fp-model precise')
|
cxxflags.append('-fp-model precise')
|
||||||
fcflags.extend(['-fp-model source', '-heap-arrays 64'])
|
fcflags.extend(['-fp-model source', '-heap-arrays 64'])
|
||||||
elif '%gcc' in spec:
|
elif '%gcc' in spec:
|
||||||
fcflags.extend(['-ffree-form', '-ffree-line-length-none'])
|
fcflags.extend([
|
||||||
|
'-ffree-form',
|
||||||
|
'-ffree-line-length-none',
|
||||||
|
'-ggdb', # make sure we get proper Fortran backtraces
|
||||||
|
])
|
||||||
elif '%pgi' in spec:
|
elif '%pgi' in spec:
|
||||||
fcflags.extend(['-Mfreeform', '-Mextend'])
|
fcflags.extend(['-Mfreeform', '-Mextend'])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue