diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/compilers/msvc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/compilers/msvc.py b/lib/spack/spack/compilers/msvc.py index d7576b78e6..86d51461aa 100644 --- a/lib/spack/spack/compilers/msvc.py +++ b/lib/spack/spack/compilers/msvc.py @@ -160,6 +160,8 @@ class Msvc(Compiler): def fc_version(cls, fc): # We're using intel for the Fortran compilers, which exist if # ONEAPI_ROOT is a meaningful variable + if not sys.platform == "win32": + return "unknown" fc_ver = cls.default_version(fc) avail_fc_version.add(fc_ver) fc_path[fc_ver] = fc |