def get_run_triple(self): if lldb.remote_platform: arch = self.getArchitecture() vendor, os, version, _ = get_triple() triple = '{}-{}-{}{}'.format(arch, vendor, os, version) else: version, _, machine = platform.mac_ver() triple = '{}-apple-macosx{}'.format(machine, version) return triple
def get_build_triple(self): """We want to build the file with a deployment target earlier than the availability set in the source file.""" if lldb.remote_platform: arch = self.getArchitecture() vendor, os, version, _ = get_triple() # This is made slightly more complex by watchOS having misaligned # version numbers. if os == 'watchos': version = '5.0' else: version = '7.0' triple = '{}-{}-{}{}'.format(arch, vendor, os, version) else: triple = '{}-apple-macosx11.0'.format(platform.machine()) return triple