mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* Remove support for linking arclite Darwin no longer uses arclite and it's no longer distributed in the macOS SDKs. This leaves the options -link-objc-runtime and -no-link-objc-runtime in place, but strips out all the logic that actually used them. * Remove a dead function * Warn if `-link-objc-runtime` is used * Update tests to not look for arclite library * Add an explicit test for the deprecation warning * Move the macOS-only -link-objc-runtime test to a separate test file
16 lines
971 B
Swift
16 lines
971 B
Swift
// REQUIRES: OS=macosx
|
|
// Note: This is really about the /host/ environment, but since there are RUN
|
|
// lines for multiple targets anyway it doesn't make a huge difference.
|
|
|
|
// The libarclite library is no longer used for any Darwin platform, so this now just verifies that we never request it
|
|
|
|
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.11 %S/../Inputs/empty.swift | %FileCheck -check-prefix NO_ARCLITE %s
|
|
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-ios9-simulator %S/../Inputs/empty.swift | %FileCheck -check-prefix NO_ARCLITE %s
|
|
// RUN: %swiftc_driver -driver-print-jobs -target arm64-apple-tvos9 %S/../Inputs/empty.swift | %FileCheck -check-prefix NO_ARCLITE %s
|
|
// RUN: %swiftc_driver -driver-print-jobs -target armv7k-apple-watchos2 %S/../Inputs/empty.swift | %FileCheck -check-prefix NO_ARCLITE %s
|
|
|
|
// NO_ARCLITE: bin/ld{{"? }}
|
|
// NO_ARCLITE-NOT: arclite
|
|
// NO_ARCLITE-NOT: CoreFoundation
|
|
// NO_ARCLITE: -o {{[^ ]+}}
|