Files
swift-mirror/test/Driver/android-link.swift
Butta f5e1429bf8 [Driver] Remove redundant clang '-target' flag that wasn't being used
The target was added for Unix toolchains in #901, but a later pull #1891 added
it again. Since clang only uses the last target flag that's passed in, all
customization done for the first one was unused these last 4+ years, so remove
it and change tests that look for custom strings passed by the first one.
2020-12-09 16:35:21 +05:30

11 lines
747 B
Swift

// RUN: %empty-directory(%t)
// RUN: %swift_driver_plain --driver-mode=swiftc -target armv7-unknown-linux-androideabihf -emit-executable %s -### 2>&1 | %FileCheck %s -check-prefix CHECK-ARMv7
// CHECK-ARMv7: clang{{(.exe)?"?.*}} --target=armv7-unknown-linux-androidhf
// RUN: %swift_driver_plain --driver-mode=swiftc -target aarch64-mone-linux-androideabi -emit-executable %s -### 2>&1 | %FileCheck %s -check-prefix CHECK-ARM64
// CHECK-ARM64: clang{{(.exe)?"?.*}} --target=aarch64-mone-linux-android
// RUN: %swift_driver_plain --driver-mode=swiftc -target x86_64-unknown-linux-androideabi -emit-executable %s -### 2>&1 | %FileCheck %s -check-prefix CHECK-X64
// CHECK-X64: clang{{(.exe)?"?.*}} --target=x86_64-unknown-linux-android