Skip to content
Snippets Groups Projects
Commit f5c9a8c2 authored by Todd Gamblin's avatar Todd Gamblin Committed by GitHub
Browse files

Merge pull request #1650 from davydden/pkg/ape_octopus_comments

ape octopus: in-code comments
parents a3f1ae8c 5333a799
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,13 @@ def install(self, spec, prefix):
'--with-libxc-prefix=%s' % spec['libxc'].prefix
])
# When preprocessor expands macros (i.e. CFLAGS) defined as quoted
# strings the result may be > 132 chars and is terminated.
# This will look to a compiler as an Unterminated character constant
# and produce Line truncated errors. To vercome this, add flags to
# let compiler know that the entire line is meaningful.
# TODO: For the lack of better approach, assume that clang is mixed
# with GNU fortran.
if spec.satisfies('%clang') or spec.satisfies('%gcc'):
args.extend([
'FCFLAGS=-O2 -ffree-line-length-none'
......
......@@ -70,10 +70,13 @@ def install(self, spec, prefix):
# --with-berkeleygw-prefix=${prefix}
])
# Supposedly configure does not pick up the required flags for gfortran
# Without it there are:
# Error: Line truncated @ global.F90:157:132
# Error: Unterminated character constant @ global.F90:157:20
# When preprocessor expands macros (i.e. CFLAGS) defined as quoted
# strings the result may be > 132 chars and is terminated.
# This will look to a compiler as an Unterminated character constant
# and produce Line truncated errors. To vercome this, add flags to
# let compiler know that the entire line is meaningful.
# TODO: For the lack of better approach, assume that clang is mixed
# with GNU fortran.
if spec.satisfies('%clang') or spec.satisfies('%gcc'):
args.extend([
'FCFLAGS=-O2 -ffree-line-length-none'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment