summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwspear <wjspear@gmail.com>2023-10-17 10:23:15 -0700
committerGitHub <noreply@github.com>2023-10-17 11:23:15 -0600
commit8c257d55b49857179c10234d2b04782ce1f5c1ff (patch)
tree7ec574cded92c62a423a384d788b388761364367
parentbd165ebc4dbd0001d4e125e1caeb9fe09064c632 (diff)
downloadspack-8c257d55b49857179c10234d2b04782ce1f5c1ff.tar.gz
spack-8c257d55b49857179c10234d2b04782ce1f5c1ff.tar.bz2
spack-8c257d55b49857179c10234d2b04782ce1f5c1ff.tar.xz
spack-8c257d55b49857179c10234d2b04782ce1f5c1ff.zip
Support apple-clang in pdt (#40582)
-rw-r--r--var/spack/repos/builtin/packages/pdt/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/pdt/package.py b/var/spack/repos/builtin/packages/pdt/package.py
index 4f3ccac0c4..c8665aaac2 100644
--- a/var/spack/repos/builtin/packages/pdt/package.py
+++ b/var/spack/repos/builtin/packages/pdt/package.py
@@ -54,12 +54,12 @@ class Pdt(AutotoolsPackage):
options.append("-pgCC")
elif self.compiler.name == "gcc":
options.append("-GNU")
- elif self.compiler.name == "clang":
+ elif self.compiler.name == "clang" or self.compiler.name == "apple-clang":
options.append("-clang")
elif self.compiler.name == "cce":
options.append("-CC")
else:
- raise InstallError("Unknown/unsupported compiler family")
+ raise InstallError("Unknown/unsupported compiler family: " + self.compiler.name)
if "+pic" in spec:
options.append("-useropt=" + self.compiler.cxx_pic_flag)