Fix logic in setting oneapi microarchitecture flags (#37634)

This commit is contained in:
Robert Cohn 2023-05-12 10:58:08 -04:00 committed by GitHub
parent 40b1aa6b67
commit fe8734cd52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -804,8 +804,10 @@ def name_matches(name, name_list):
toolchains.add(compiler_cls.__name__)
if len(toolchains) > 1:
if toolchains == set(["Clang", "AppleClang", "Aocc"]) or toolchains == set(
["Dpcpp", "Oneapi"]
if (
toolchains == set(["Clang", "AppleClang", "Aocc"])
# Msvc toolchain uses Intel ifx
or toolchains == set(["Msvc", "Dpcpp", "Oneapi"])
):
return False
tty.debug("[TOOLCHAINS] {0}".format(toolchains))