Add clang compiler (#15152)

This commit is contained in:
Tim Haines 2020-02-21 12:32:55 -06:00 committed by GitHub
parent 065cbf1bbe
commit b399761106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,8 @@ def configure(self, spec, prefix):
options.append('-pgCC')
elif self.compiler.name == 'gcc':
options.append('-GNU')
elif self.compiler.name == 'clang':
options.append('-clang')
else:
raise InstallError('Unknown/unsupported compiler family')