diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_systems/oneapi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/build_systems/oneapi.py b/lib/spack/spack/build_systems/oneapi.py index 0844ff5d82..41e337cb70 100644 --- a/lib/spack/spack/build_systems/oneapi.py +++ b/lib/spack/spack/build_systems/oneapi.py @@ -9,7 +9,7 @@ import getpass import shutil -from sys import platform +import platform from os.path import basename, dirname, isdir from spack.package import Package @@ -48,7 +48,7 @@ class IntelOneApiPackage(Package): if installer_path is None: installer_path = basename(self.url_for_version(spec.version)) - if platform == 'linux': + if platform.system() == 'Linux': # Intel installer assumes and enforces that all components # are installed into a single prefix. Spack wants to # install each component in a separate prefix. The |