summaryrefslogtreecommitdiff
path: root/lib/spack/spack/compilers/xl_r.py
blob: 238d43cea15d320bac9e6c5ea116aa15ec40c821 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

import os

import spack.compilers.xl


class XlR(spack.compilers.xl.Xl):
    # Subclasses use possible names of C compiler
    cc_names = ["xlc_r"]

    # Subclasses use possible names of C++ compiler
    cxx_names = ["xlC_r", "xlc++_r"]

    # Subclasses use possible names of Fortran 77 compiler
    f77_names = ["xlf_r"]

    # Subclasses use possible names of Fortran 90 compiler
    fc_names = ["xlf90_r", "xlf95_r", "xlf2003_r", "xlf2008_r"]

    # Named wrapper links within build_env_path
    link_paths = {
        "cc": os.path.join("xl_r", "xlc_r"),
        "cxx": os.path.join("xl_r", "xlc++_r"),
        "f77": os.path.join("xl_r", "xlf_r"),
        "fc": os.path.join("xl_r", "xlf90_r"),
    }