File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
Inputs/Swift/XWithTarget.swiftmodule Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1+ // swift-interface-format-version: 1.0
2+ // swift-module-flags: -module-name XWithTarget -target arm64-apple-macosx10.9
3+ import Swift
4+ @_exported import X
5+ public func overlayFuncX() { }
File renamed without changes.
Original file line number Diff line number Diff line change 11// REQUIRES: VENDOR=apple
2+ // REQUIRES: OS=macosx
3+
24// RUN: %empty-directory(%t.module-cache)
3- // RUN: %target-swift-frontend -emit-module -o %t.foo.swiftmodule -module-cache-path %t.module-cache -I %S/Inputs/CHeaders -I %S/Inputs/Swift %s -target x86_64 -apple-macosx10.14
5+ // RUN: %target-swift-frontend -emit-module -o %t.foo.swiftmodule -module-cache-path %t.module-cache -I %S/Inputs/CHeaders -I %S/Inputs/Swift %s -target %target-cpu -apple-macosx10.14
46
57// Without -clang-target, we build two X.pcm
68// RUN: find %t.module-cache -name "X-*.pcm" | count 2
79
810// RUN: %empty-directory(%t.module-cache)
9- // RUN: %target-swift-frontend -emit-module -o %t.foo.swiftmodule -module-cache-path %t.module-cache -I %S/Inputs/CHeaders -I %S/Inputs/Swift %s -target x86_64- apple-macosx10.14 -clang-target x86_64 -apple-macosx10.14
11+ // RUN: %target-swift-frontend -emit-module -o %t.foo.swiftmodule -module-cache-path %t.module-cache -I %S/Inputs/CHeaders -I %S/Inputs/Swift %s -target %target-cpu- apple-macosx10.14 -clang-target %target-cpu -apple-macosx10.14
1012
1113// With -clang-target, we build one X.pcm
1214// RUN: find %t.module-cache -name "X-*.pcm" | count 1
15+ // RUN: %target-swift-frontend -scan-dependencies -module-cache-path %t.module-cache %s -o %t.deps.json -I %S/Inputs/CHeaders -I %S/Inputs/Swift -target %target-cpu-apple-macosx10.14 -clang-target %target-cpu-apple-macosx10.14
1316
14- // RUN: %target-swift-frontend -scan-dependencies -module-cache-path %t.module-cache %s -o %t.deps.json -I %S/Inputs/CHeaders -I %S/Inputs/Swift -target x86_64-apple-macosx10.14 -clang-target x86_64-apple-macosx10.14
1517// RUN: %FileCheck %s < %t.deps.json
1618
1719// CHECK: "-clang-target"
18- // CHECK-NEXT: "x86_64-apple-macosx10.14"
19-
20+ // CHECK-NEXT: "{{.*}}-apple-macosx10.14"
2021import X
2122import XWithTarget
You can’t perform that action at this time.
0 commit comments