MACOSX_DEPLOYMENT_TARGET: MAJOR.MINOR (#31811)
This commit is contained in:
parent
d2ad58c476
commit
ec87924039
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
import spack.target
|
import spack.target
|
||||||
from spack.operating_systems.mac_os import MacOs
|
from spack.operating_systems.mac_os import MacOs
|
||||||
|
from spack.version import Version
|
||||||
|
|
||||||
from ._platform import Platform
|
from ._platform import Platform
|
||||||
|
|
||||||
|
@ -60,7 +61,7 @@ def setup_platform_environment(self, pkg, env):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
os = self.operating_sys[pkg.spec.os]
|
os = self.operating_sys[pkg.spec.os]
|
||||||
version = os.version
|
version = Version(os.version)
|
||||||
if len(version) == 1:
|
if len(version) == 1:
|
||||||
# Version has only one component: add a minor version to prevent
|
# Version has only one component: add a minor version to prevent
|
||||||
# potential errors with `ld`,
|
# potential errors with `ld`,
|
||||||
|
|
Loading…
Reference in a new issue