mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Pending: support for tracking depedencies through -import-underlying-module and -import-objc-header. Fixes rdar://problem/51825495 and rdar://problem/51825644.
27 lines
1.0 KiB
Swift
27 lines
1.0 KiB
Swift
// RUN: rm -f %t
|
|
// RUN: env SWIFT_LOADED_MODULE_TRACE_FILE=%t %target-build-swift -module-name loaded_module_trace_env -c %s -o- > /dev/null
|
|
// RUN: %FileCheck %s < %t
|
|
|
|
// CHECK: {
|
|
// CHECK: "version":2
|
|
// CHECK: "name":"loaded_module_trace_env"
|
|
// CHECK: "arch":"{{[^"]*}}"
|
|
// CHECK: "swiftmodules":[
|
|
// CHECK-DAG: "{{[^"]*\\[/\\]}}Swift.swiftmodule{{(\\[/\\][^"]+[.]swiftmodule)?}}"
|
|
// CHECK-DAG: "{{[^"]*\\[/\\]}}SwiftOnoneSupport.swiftmodule{{(\\[/\\][^"]+[.]swiftmodule)?}}"
|
|
// CHECK: ]
|
|
// CHECK: "swiftmodulesDetailedInfo":[
|
|
// CHECK: {
|
|
// CHECK-DAG: "name":"Swift"
|
|
// CHECK-DAG: "path":"{{[^"]*\\[/\\]}}Swift.swiftmodule{{(\\[/\\][^"]+[.]swiftmodule)?}}"
|
|
// CHECK-DAG: "isImportedDirectly":true
|
|
// CHECK-DAG: "supportsLibraryEvolution":true
|
|
// CHECK: }
|
|
// CHECK: {
|
|
// CHECK-DAG: "name":"SwiftOnoneSupport"
|
|
// CHECK-DAG: "path":"{{[^"]*\\[/\\]}}SwiftOnoneSupport.swiftmodule{{(\\[/\\][^"]+[.]swiftmodule)?}}"
|
|
// CHECK-DAG: "isImportedDirectly":true
|
|
// CHECK-DAG: "supportsLibraryEvolution":true
|
|
// CHECK: }
|
|
// CHECK: ]
|