From 97da26f54aa3c08b9586fb10b8c34dd355edc14d Mon Sep 17 00:00:00 2001 From: Augusto Noronha Date: Mon, 13 Dec 2021 15:34:02 -0300 Subject: [PATCH] [lldb] Bump macOS versions to 11 on the TestPlaygrounds test This is necessary since macOS 11 was the first version to support ARM64, and the compiler will silently bump up the triple when something < 11 is specified. --- lldb/test/API/lang/swift/playgrounds/Contents.swift | 2 +- lldb/test/API/lang/swift/playgrounds/TestPlaygrounds.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/test/API/lang/swift/playgrounds/Contents.swift b/lldb/test/API/lang/swift/playgrounds/Contents.swift index f16f4327d4582..c0dee1b8c8a08 100644 --- a/lldb/test/API/lang/swift/playgrounds/Contents.swift +++ b/lldb/test/API/lang/swift/playgrounds/Contents.swift @@ -17,7 +17,7 @@ let b = 5 a + b -@available(macOS 10.11, iOS 8.0, tvOS 8.0, watchOS 6.0, *) func newAPI() -> Int { +@available(macOS 11.1, iOS 8.0, tvOS 8.0, watchOS 6.0, *) func newAPI() -> Int { return 11 } diff --git a/lldb/test/API/lang/swift/playgrounds/TestPlaygrounds.py b/lldb/test/API/lang/swift/playgrounds/TestPlaygrounds.py index a071138cd382f..5e7a77207e10d 100644 --- a/lldb/test/API/lang/swift/playgrounds/TestPlaygrounds.py +++ b/lldb/test/API/lang/swift/playgrounds/TestPlaygrounds.py @@ -53,7 +53,7 @@ def get_build_triple(self): version = '7.0' triple = '{}-{}-{}{}'.format(arch, vendor, os, version) else: - triple = '{}-apple-macosx10.10'.format(platform.machine()) + triple = '{}-apple-macosx11.0'.format(platform.machine()) return triple def get_run_triple(self):