mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When running the tests with a toolchain built with the "early swift driver", we would incorrectly process the command line, losing the empty string argument to `-sdk` which would then incorrectly process the remainder of the command line. This allows most of the remaining tests to pass with the early swift driver on Windows (assuming that the paths are adjusted properly).
19 lines
912 B
Swift
19 lines
912 B
Swift
// RUN: %swift_driver_plain --driver-mode=swiftc -sdk '""' -driver-print-actions %s 2>&1 | %FileCheck -check-prefix=CHECK-SWIFTC-%target-object-format %s
|
|
// RUN: %swift_driver_plain -sdk '""' -driver-print-actions %s --driver-mode=swiftc 2>&1 | %FileCheck -check-prefix=CHECK-SWIFT %s
|
|
|
|
// CHECK-SWIFTC-macho: 0: input, "{{.*}}driver_mode.swift", swift
|
|
// CHECK-SWIFTC-macho: 1: compile, {0}, object
|
|
// CHECK-SWIFTC-macho: 2: link, {1}, image
|
|
|
|
// CHECK-SWIFTC-elf: 0: input, "{{.*}}driver_mode.swift", swift
|
|
// CHECK-SWIFTC-elf: 1: compile, {0}, object
|
|
// CHECK-SWIFTC-elf: 2: swift-autolink-extract, {1}, autolink
|
|
// CHECK-SWIFTC-elf: 3: link, {1, 2}, image
|
|
|
|
// CHECK-SWIFTC-coff: 0: input, "{{.*}}driver_mode.swift", swift
|
|
// CHECK-SWIFTC-coff: 1: compile, {0}, object
|
|
// CHECK-SWIFTC-coff: 2: link, {1}, image
|
|
|
|
// CHECK-SWIFT: 0: input, "{{.*}}driver_mode.swift", swift
|
|
// CHECK-SWIFT: 1: interpret, {0}, none
|