diff options
author | Harmen Stoppels <me@harmenstoppels.nl> | 2024-10-18 12:03:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-18 04:03:58 -0600 |
commit | d36452cf4e70fa1da8b9db43921850872b82ced9 (patch) | |
tree | c7b20f25356c0b0fd017fa1579f703b7da21f5de /var | |
parent | 580cc3c91ba1032476f0a9d540b82d6d78b252c2 (diff) | |
download | spack-d36452cf4e70fa1da8b9db43921850872b82ced9.tar.gz spack-d36452cf4e70fa1da8b9db43921850872b82ced9.tar.bz2 spack-d36452cf4e70fa1da8b9db43921850872b82ced9.tar.xz spack-d36452cf4e70fa1da8b9db43921850872b82ced9.zip |
clingo-bootstrap: no need for setting MACOSX_DEPLOYMENT_TARGET (#47065)
Turns out `os=...` of the spec and `MACOSX_DEPLOYMENT_TARGET` are kept
in sync, and the env variable is used to initialize
`CMAKE_MACOSX_DEPLOYMENT_TARGET`.
In bootstrap code we set the env variable, so these bits are redundant.
---------
Co-authored-by: haampie <haampie@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/clingo-bootstrap/package.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/clingo-bootstrap/package.py b/var/spack/repos/builtin/packages/clingo-bootstrap/package.py index 143930d651..4f3b8ac74a 100644 --- a/var/spack/repos/builtin/packages/clingo-bootstrap/package.py +++ b/var/spack/repos/builtin/packages/clingo-bootstrap/package.py @@ -75,15 +75,7 @@ class ClingoBootstrap(Clingo): return self.define("CLINGO_BUILD_PY_SHARED", "OFF") def cmake_args(self): - args = super().cmake_args() - args.append(self.define("CLINGO_BUILD_APPS", False)) - if self.spec.satisfies("platform=darwin target=aarch64:"): - # big sur is first to support darwin-aarch64 - args.append(self.define("CMAKE_OSX_DEPLOYMENT_TARGET", "11")) - elif self.spec.satisfies("platform=darwin target=x86_64:"): - # for x86_64 use highsierra - args.append(self.define("CMAKE_OSX_DEPLOYMENT_TARGET", "10.13")) - return args + return [*super().cmake_args(), self.define("CLINGO_BUILD_APPS", False)] @run_before("cmake", when="+optimized") def pgo_train(self): |