Fix logic in setting oneapi microarchitecture flags (#37634)
This commit is contained in:
		@@ -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))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user