mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Commit to a command line option spelling so that build systems can start testing it. I deliberately picked one of the longer names we were considering because we can always decide to add a shorter alias, but can't decide a shorter name was too generic. Like the other supplementary output flags, -emit-parseable-module-interface-path will emit a .swiftinterface file to a particular path, while -emit-parseable-module-interface will put it next to the main output (the one specified with -o). rdar://problem/43776945
10 lines
640 B
Swift
10 lines
640 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module -o %t/main~partial.swiftmodule -primary-file %s %S/Inputs/other.swift -module-name main
|
|
// RUN: %target-swift-frontend -emit-module -o %t/other~partial.swiftmodule %s -primary-file %S/Inputs/other.swift -module-name main
|
|
// RUN: %target-swift-frontend -merge-modules -emit-module -o /dev/null -emit-parseable-module-interface-path - %t/main~partial.swiftmodule -module-name main %t/other~partial.swiftmodule | %FileCheck %s
|
|
|
|
// CHECK: {{^}}public func verySimpleFunction(){{$}}
|
|
public func verySimpleFunction() {}
|
|
|
|
// CHECK: {{^}}public func otherFileFunction(){{$}}
|