fix intel-tbb build with rocmcc (#35472)

rocmcc is a clang compiler. Pass that information on to the TBB build
system.
This commit is contained in:
Philipp Edelmann 2023-02-14 07:55:20 -07:00 committed by GitHub
parent 9b3c4e0696
commit e75a07d155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,7 +255,7 @@ def build(self, pkg, spec, prefix):
#
self.coerce_to_spack("build")
if spec.satisfies("%clang") or spec.satisfies("%apple-clang"):
if spec.satisfies("%clang") or spec.satisfies("%apple-clang") or spec.satisfies("%rocmcc"):
tbb_compiler = "clang"
elif spec.satisfies("%intel"):
tbb_compiler = "icc"