diff options
author | wspear <wjspear@gmail.com> | 2022-12-02 15:02:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 15:02:24 -0800 |
commit | 8f5209063dbe97d08db61ebbbf06bf5d176275eb (patch) | |
tree | 0d708cd3feb8e63d5864b8ab4367c8f1113451ce /var | |
parent | 241a8f6be657178d940e830a0c7f1cbaf7e02383 (diff) | |
download | spack-8f5209063dbe97d08db61ebbbf06bf5d176275eb.tar.gz spack-8f5209063dbe97d08db61ebbbf06bf5d176275eb.tar.bz2 spack-8f5209063dbe97d08db61ebbbf06bf5d176275eb.tar.xz spack-8f5209063dbe97d08db61ebbbf06bf5d176275eb.zip |
Use correct method for selecting compiler names. (#34175)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/tau/package.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py index 696b7c3569..01c0b2d824 100644 --- a/var/spack/repos/builtin/packages/tau/package.py +++ b/var/spack/repos/builtin/packages/tau/package.py @@ -164,14 +164,13 @@ class Tau(Package): if compiler_path: compiler_path = compiler_path + "/bin/" os.environ["PATH"] = ":".join([compiler_path, os.environ["PATH"]]) - compiler_options = [ - "-c++=%s" % self.compiler.cxx_names[0], - "-cc=%s" % self.compiler.cc_names[0], + "-c++=%s" % os.path.basename(self.compiler.cxx), + "-cc=%s" % os.path.basename(self.compiler.cc), ] if "+fortran" in spec and self.compiler.fc: - compiler_options.append("-fortran=%s" % self.compiler.fc_names[0]) + compiler_options.append("-fortran=%s" % os.path.basename(self.compiler.fc)) ########## |