mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
- Add frontend and standard library build support for tvOS. - Add frontend support for watchOS. watchOS standard library builds are still disabled during SDK bring-up. To build for TVOS, specify --tvos to build-script. To build for watchOS, specify --watchos to build-script (not yet supported). This patch does not include turning on full tests for TVOS or watchOS, and will be included in a follow-up patch. Swift SVN r26278
28 lines
1.3 KiB
Swift
28 lines
1.3 KiB
Swift
// RUN: %swiftc_driver -driver-print-jobs -profile-generate -target x86_64-apple-macosx10.9 %s | FileCheck -check-prefix=CHECK -check-prefix=OSX %s
|
|
|
|
// RUN: %swiftc_driver -driver-print-jobs -profile-generate -target x86_64-apple-ios7.1 %s | FileCheck -check-prefix=CHECK -check-prefix=IOS %s
|
|
|
|
// RUN: %swiftc_driver -driver-print-jobs -profile-generate -target x86_64-apple-tvos9.0 %s | FileCheck -check-prefix=CHECK -check-prefix=tvOS %s
|
|
|
|
// RUN: %swiftc_driver -driver-print-jobs -profile-generate -target x86_64-apple-watchos2.0 %s | FileCheck -check-prefix=CHECK -check-prefix=watchOS %s
|
|
|
|
// RUN: %swiftc_driver -driver-print-jobs -profile-generate -target x86_64-unknown-linux-gnu %s | FileCheck -check-prefix=CHECK -check-prefix=LINUX %s
|
|
|
|
// CHECK: swift
|
|
// CHECK: -profile-generate
|
|
|
|
// OSX: bin/ld{{"? }}
|
|
// OSX: lib/swift/clang/{{[^ ]*}}/lib/darwin/libclang_rt.profile_osx.a
|
|
|
|
// IOS: bin/ld{{"? }}
|
|
// IOS: lib/swift/clang/{{[^ ]*}}/lib/darwin/libclang_rt.profile_ios.a
|
|
|
|
// tvOS: bin/ld{{"? }}
|
|
// tvOS: lib/swift/clang/{{[^ ]*}}/lib/darwin/libclang_rt.profile_tvos.a
|
|
|
|
// watchOS: bin/ld{{"? }}
|
|
// watchOS: lib/swift/clang/{{[^ ]*}}/lib/darwin/libclang_rt.profile_watchos.a
|
|
|
|
// LINUX: clang++{{"? }}
|
|
// LINUX: lib/swift/clang/{{[^ ]*}}/lib/linux/libclang_rt.profile-x86_64.a
|