diff options
author | Denis Davydov <davydden@gmail.com> | 2016-08-29 08:45:15 +0200 |
---|---|---|
committer | Denis Davydov <davydden@gmail.com> | 2016-08-29 08:45:15 +0200 |
commit | 90070c317dd10c0e12babe71e90e98cea0447693 (patch) | |
tree | d5420d23e2e3e3e68329146ab9ca8d316de34088 | |
parent | 77c24d4127f29f88eed6edc99c3a71d2ac56f6a5 (diff) | |
download | spack-90070c317dd10c0e12babe71e90e98cea0447693.tar.gz spack-90070c317dd10c0e12babe71e90e98cea0447693.tar.bz2 spack-90070c317dd10c0e12babe71e90e98cea0447693.tar.xz spack-90070c317dd10c0e12babe71e90e98cea0447693.zip |
ape: in-code comments to explain compiler flags
-rw-r--r-- | var/spack/repos/builtin/packages/ape/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ape/package.py b/var/spack/repos/builtin/packages/ape/package.py index b1647798b5..48e436804f 100644 --- a/var/spack/repos/builtin/packages/ape/package.py +++ b/var/spack/repos/builtin/packages/ape/package.py @@ -45,6 +45,13 @@ class Ape(Package): '--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' |