diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-06-25 18:18:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-25 11:18:48 -0500 |
commit | 14599f09be6cd6eac4dc4d9d2d01a0ad001ae3f5 (patch) | |
tree | 62b50d312323e206a11a0d8c7b4db58024768439 /var/spack/repos/builtin/packages/ape/package.py | |
parent | a31c115d799c364f60e82fed02ba1fcc80bd935f (diff) | |
download | spack-14599f09be6cd6eac4dc4d9d2d01a0ad001ae3f5.tar.gz spack-14599f09be6cd6eac4dc4d9d2d01a0ad001ae3f5.tar.bz2 spack-14599f09be6cd6eac4dc4d9d2d01a0ad001ae3f5.tar.xz spack-14599f09be6cd6eac4dc4d9d2d01a0ad001ae3f5.zip |
Separate Apple Clang from LLVM Clang (#17110)
* Separate Apple Clang from LLVM Clang
Apple Clang is a compiler of its own. All places
referring to "-apple" suffix have been updated.
* Hack to use a dash in 'apple-clang'
To be able to use autodoc from Sphinx we need
a valid Python name for the module that contains
Apple's Clang code.
* Updated packages to account for the existence of apple-clang
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Added unit test for XCode related functions
Co-authored-by: Gregory Becker <becker33@llnl.gov>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var/spack/repos/builtin/packages/ape/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/ape/package.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/ape/package.py b/var/spack/repos/builtin/packages/ape/package.py index 114185aaa4..bf9f895e68 100644 --- a/var/spack/repos/builtin/packages/ape/package.py +++ b/var/spack/repos/builtin/packages/ape/package.py @@ -29,11 +29,13 @@ class Ape(Package): # 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 + # and produce Line truncated errors. To overcome 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'): + # TODO: with GNU fortran. + if (spec.satisfies('%apple-clang') or + spec.satisfies('%clang') or + spec.satisfies('%gcc')): args.extend([ 'FCFLAGS=-O2 -ffree-line-length-none' ]) |