diff options
author | Robert Cohn <robert.s.cohn@intel.com> | 2023-05-12 10:58:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 10:58:08 -0400 |
commit | fe8734cd52d161142cccdb87d8fa4e4ae65358e8 (patch) | |
tree | 5c7a0b32f8201674bd77c6e85a55c358b254b1ca | |
parent | 40b1aa6b674c9f8051f9d9b51be4f84b2153d558 (diff) | |
download | spack-fe8734cd52d161142cccdb87d8fa4e4ae65358e8.tar.gz spack-fe8734cd52d161142cccdb87d8fa4e4ae65358e8.tar.bz2 spack-fe8734cd52d161142cccdb87d8fa4e4ae65358e8.tar.xz spack-fe8734cd52d161142cccdb87d8fa4e4ae65358e8.zip |
Fix logic in setting oneapi microarchitecture flags (#37634)
-rw-r--r-- | lib/spack/spack/compilers/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/spack/spack/compilers/__init__.py b/lib/spack/spack/compilers/__init__.py index 3c628980e3..5d013b1344 100644 --- a/lib/spack/spack/compilers/__init__.py +++ b/lib/spack/spack/compilers/__init__.py @@ -804,8 +804,10 @@ def is_mixed_toolchain(compiler): 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)) |