From: Carl Hetherington Date: Sat, 26 Dec 2020 00:45:49 +0000 (+0100) Subject: Try to support universal or arm-only builds. X-Git-Url: https://main.carlh.net/gitweb/?p=cdist.git;a=commitdiff_plain;h=6d911b7fd0815e329393ee0049a3c83491086cc1 Try to support universal or arm-only builds. --- diff --git a/cdist b/cdist index 03b4dec..7576f4c 100755 --- a/cdist +++ b/cdist @@ -909,15 +909,17 @@ def target_factory(args): target = LinuxTarget(p[0], None, int(p[1]), args.work) elif s == 'raspbian': target = LinuxTarget(s, None, None, args.work) - elif s == 'osx-intel': - # Universal Intel 32/64-bit + elif s == 'osx-intel-32-64': + # Universal Intel 32/64-bit built for config's os_sdk if args.command == 'build': target = OSXSingleTarget('x86_64', args.work) else: target = OSXUniversalTarget(('i386', 'x86_64'), args.work) - elif s == 'osx-arm': - # Universal arm64 and Intel 64-bit + elif s == 'osx-arm-intel-64': + # Universal arm64 and Intel 64-bit built for SDK 11.0 target = OSXUniversalTarget(('arm64', 'x86_64'), args.work) + elif s == 'osx-arm64': + target = OSXSingleTarget('arm64', '11.0', args.work) elif s == 'source': target = SourceTarget() elif s == 'flatpak':