summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2022-07-29 19:12:02 -0700
committerGitHub <noreply@github.com>2022-07-30 02:12:02 +0000
commitec879240396b457f8bf05361a7d55280e0fa19fb (patch)
tree657de1cc603c6dcf22bcf5be7139aca84a721ffa /lib
parentd2ad58c476cd992201c4efad9eb51fa7def6250d (diff)
downloadspack-ec879240396b457f8bf05361a7d55280e0fa19fb.tar.gz
spack-ec879240396b457f8bf05361a7d55280e0fa19fb.tar.bz2
spack-ec879240396b457f8bf05361a7d55280e0fa19fb.tar.xz
spack-ec879240396b457f8bf05361a7d55280e0fa19fb.zip
MACOSX_DEPLOYMENT_TARGET: MAJOR.MINOR (#31811)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/platforms/darwin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/platforms/darwin.py b/lib/spack/spack/platforms/darwin.py
index c2d6bbb281..e0393aab57 100644
--- a/lib/spack/spack/platforms/darwin.py
+++ b/lib/spack/spack/platforms/darwin.py
@@ -9,6 +9,7 @@ import archspec.cpu
import spack.target
from spack.operating_systems.mac_os import MacOs
+from spack.version import Version
from ._platform import Platform
@@ -60,7 +61,7 @@ class Darwin(Platform):
"""
os = self.operating_sys[pkg.spec.os]
- version = os.version
+ version = Version(os.version)
if len(version) == 1:
# Version has only one component: add a minor version to prevent
# potential errors with `ld`,