summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-01 14:54:18 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-14 03:31:03 +0100
commite3b7a6754d311422596bc6e38f4d0aa0ade4116b (patch)
tree6beb29c01a40f720cbfe92087c0fa0a710a17710
parentdb72fa1162db38a80c0b73d4d609dbe7433985fc (diff)
Add sdk to OSXUniversalTarget.
-rwxr-xr-xcdist10
1 files changed, 4 insertions, 6 deletions
diff --git a/cdist b/cdist
index 5e494b3..0024b65 100755
--- a/cdist
+++ b/cdist
@@ -837,16 +837,14 @@ class OSXUniversalTarget(OSXTarget):
def __init__(self, archs, directory=None):
super(OSXUniversalTarget, self).__init__(directory)
self.archs = archs
-
- def package(self, project, checkout, output_dir, options, notarize):
-
- sdk = config.get('osx_sdk')
+ self.sdk = config.get('osx_sdk')
for a in self.archs:
if a.find('arm') != -1:
- sdk = '11.0'
+ self.sdk = '11.0'
+ def package(self, project, checkout, output_dir, options, notarize):
for a in self.archs:
- target = OSXSingleTarget(a, sdk, os.path.join(self.directory, a))
+ target = OSXSingleTarget(a, self.sdk, os.path.join(self.directory, a))
target.ccache = self.ccache
tree = globals.trees.get(project, checkout, target)
tree.build_dependencies(options)