Support apple-clang in pdt (#40582)

This commit is contained in:
wspear 2023-10-17 10:23:15 -07:00 committed by GitHub
parent bd165ebc4d
commit 8c257d55b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,12 +54,12 @@ def configure(self, spec, prefix):
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)