mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This change introduces a new compilation target platform to the Swift compiler - visionOS. - Changes to the compiler build infrastrucuture to support building compiler-adjacent artifacts and test suites for the new target. - Addition of the new platform kind definition. - Support for the new platform in language constructs such as compile-time availability annotations or runtime OS version queries. - Utilities to read out Darwin platform SDK info containing platform mapping data. - Utilities to support re-mapping availability annotations from iOS to visionOS (e.g. 'updateIntroducedPlatformForFallback', 'updateDeprecatedPlatformForFallback', 'updateObsoletedPlatformForFallback'). - Additional tests exercising platform-specific availability handling and availability re-mapping fallback code-path. - Changes to existing test suite to accomodate the new platform.
29 lines
1.4 KiB
Plaintext
29 lines
1.4 KiB
Plaintext
# REQUIRES: standalone_build
|
|
# UNSUPPORTED: OS=macosx
|
|
# UNSUPPORTED: OS=ios
|
|
# UNSUPPORTED: OS=tvos
|
|
# UNSUPPORTED: OS=watchos
|
|
# UNSUPPORTED: OS=xros
|
|
#
|
|
# RUN: %empty-directory(%t)
|
|
# RUN: mkdir -p %t
|
|
# RUN: SKIP_XCODE_VERSION_CHECK=1 SWIFT_BUILD_ROOT=%t %swift_src_root/utils/build-script --dry-run --xctest --cmake %cmake 2>&1 | %FileCheck --check-prefix=CLEAN-CORELIBS-CHECK %s
|
|
|
|
# RUN: %empty-directory(%t)
|
|
# RUN: mkdir -p %t
|
|
# RUN: SKIP_XCODE_VERSION_CHECK=1 SWIFT_BUILD_ROOT=%t %swift_src_root/utils/build-script --dry-run --xctest --skip-clean-libdispatch --skip-clean-foundation --skip-clean-xctest --cmake %cmake 2>&1 | %FileCheck --check-prefix=SKIP-CLEAN-CORELIBS-CHECK %s
|
|
|
|
# CLEAN-CORELIBS-CHECK: Cleaning the libdispatch build directory
|
|
# CLEAN-CORELIBS-CHECK-NEXT: rm -rf
|
|
# CLEAN-CORELIBS-CHECK: Cleaning the Foundation build directory
|
|
# CLEAN-CORELIBS-CHECK-NEXT: rm -rf
|
|
# CLEAN-CORELIBS-CHECK: Cleaning the XCTest build directory
|
|
# CLEAN-CORELIBS-CHECK-NEXT: rm -rf
|
|
|
|
# SKIP-CLEAN-CORELIBS-CHECK-NOT: Cleaning the libdispatch build directory
|
|
# SKIP-CLEAN-CORELIBS-CHECK-NOT: rm -rf {{.*/libdispatch-[^/]*}}
|
|
# SKIP-CLEAN-CORELIBS-CHECK-NOT: Cleaning the Foundation build directory
|
|
# SKIP-CLEAN-CORELIBS-CHECK-NOT: rm -rf {{.*/foundation-[^/]*}}
|
|
# SKIP-CLEAN-CORELIBS-CHECK-NOT: Cleaning the XCTest build directory
|
|
# SKIP-CLEAN-CORELIBS-CHECK-NOT: rm -rf {{.*/xctest-[^/]*}}
|