MACOSX_DEPLOYMENT_TARGET: MAJOR.MINOR (#31811)

This commit is contained in:
Adam J. Stewart 2022-07-29 19:12:02 -07:00 committed by GitHub
parent d2ad58c476
commit ec87924039
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,7 @@
import spack.target
from spack.operating_systems.mac_os import MacOs
from spack.version import Version
from ._platform import Platform
@ -60,7 +61,7 @@ def setup_platform_environment(self, pkg, env):
"""
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`,