From 8f5209063dbe97d08db61ebbbf06bf5d176275eb Mon Sep 17 00:00:00 2001 From: wspear Date: Fri, 2 Dec 2022 15:02:24 -0800 Subject: Use correct method for selecting compiler names. (#34175) --- var/spack/repos/builtin/packages/tau/package.py | 7 +++---- 1 file 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)) ########## -- cgit v1.2.3-70-g09d2