diff options
author | wspear <wjspear@gmail.com> | 2023-10-17 10:23:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-17 11:23:15 -0600 |
commit | 8c257d55b49857179c10234d2b04782ce1f5c1ff (patch) | |
tree | 7ec574cded92c62a423a384d788b388761364367 /var | |
parent | bd165ebc4dbd0001d4e125e1caeb9fe09064c632 (diff) | |
download | spack-8c257d55b49857179c10234d2b04782ce1f5c1ff.tar.gz spack-8c257d55b49857179c10234d2b04782ce1f5c1ff.tar.bz2 spack-8c257d55b49857179c10234d2b04782ce1f5c1ff.tar.xz spack-8c257d55b49857179c10234d2b04782ce1f5c1ff.zip |
Support apple-clang in pdt (#40582)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/pdt/package.py | 4 |
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) |