mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SwiftPM wants to use the unversioned triple to know where to put results. Vend this as part of -print-target-info.
12 lines
385 B
Swift
12 lines
385 B
Swift
// Test that -print-target-info infers the host OS when that host OS is macOS
|
|
//
|
|
// We could duplicate this test for other host platforms.
|
|
|
|
// RUN: %swift_driver -print-target-info | %FileCheck %s
|
|
// RUN: %target-swift-frontend -print-target-info | %FileCheck %s
|
|
|
|
// REQUIRES: OS=macosx
|
|
|
|
// CHECK: "triple": "x86_64-apple-macosx10
|
|
// CHECK: "unversionedTriple": "x86_64-apple-macosx"
|