Files
swift-mirror/test/Driver/print_target_info_macos.swift
Doug Gregor 3a9b8bc658 [Driver] Add unversioned triple to the output of -print-target-info.
SwiftPM wants to use the unversioned triple to know where to put
results. Vend this as part of -print-target-info.
2019-12-19 09:10:58 -08:00

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"