Files
swift-mirror/test/Driver/print_target_info_macos.swift
Mishal Shah 10dda582d6 [Apple Silicon] Update tests for no macOS target triple canonicalization
LLVM no longer canonicalizes target triples for maOS versions. Update
tests to account for this.
2020-07-02 19:30:01 -07:00

12 lines
397 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": "{{.*}}-apple-macosx{{[0-9][0-9]}}
// CHECK: "unversionedTriple": "{{.*}}-apple-macosx"