diff options
author | Dan FitzGerald <38731008+djfitzgerald@users.noreply.github.com> | 2018-06-14 23:51:45 -0400 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2018-06-14 20:51:45 -0700 |
commit | d182d85dd1c220251e60b98ffa02ecd624f3504c (patch) | |
tree | 3107f0943fdca75b12b28d26cff53ffb8c7edf09 | |
parent | 54aab585c49297b1be5072deea16f5ed2876ba09 (diff) | |
download | spack-d182d85dd1c220251e60b98ffa02ecd624f3504c.tar.gz spack-d182d85dd1c220251e60b98ffa02ecd624f3504c.tar.bz2 spack-d182d85dd1c220251e60b98ffa02ecd624f3504c.tar.xz spack-d182d85dd1c220251e60b98ffa02ecd624f3504c.zip |
Update the clang compiler definition to use IBM XL Fortran compiler (#8389)
on CORAL systems (linux-rhel7-ppc64le).
-rw-r--r-- | lib/spack/spack/compilers/clang.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/spack/spack/compilers/clang.py b/lib/spack/spack/compilers/clang.py index 2aa958ab91..52763dff25 100644 --- a/lib/spack/spack/compilers/clang.py +++ b/lib/spack/spack/compilers/clang.py @@ -43,10 +43,10 @@ class Clang(Compiler): cxx_names = ['clang++'] # Subclasses use possible names of Fortran 77 compiler - f77_names = ['flang', 'gfortran'] + f77_names = ['flang', 'gfortran', 'xlf_r'] # Subclasses use possible names of Fortran 90 compiler - fc_names = ['flang', 'gfortran'] + fc_names = ['flang', 'gfortran', 'xlf90_r'] # Named wrapper links within lib/spack/env link_paths = {'cc': 'clang/clang', @@ -57,6 +57,10 @@ class Clang(Compiler): # compilers.yaml link_paths['f77'] = 'clang/gfortran' link_paths['fc'] = 'clang/gfortran' + elif spack.architecture.sys_type() == 'linux-rhel7-ppc64le': + # This platform uses clang with IBM XL Fortran compiler + link_paths['f77'] = 'xl_r/xlf_r' + link_paths['fc'] = 'xl_r/xlf90_r' else: link_paths['f77'] = 'clang/flang' link_paths['fc'] = 'clang/flang' |