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 1
1
// REQUIRES: VENDOR=apple
2
+ // REQUIRES: OS=macosx
3
+
2
4
// 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
4
6
5
7
// Without -clang-target, we build two X.pcm
6
8
// RUN: find %t.module-cache -name "X-*.pcm" | count 2
7
9
8
10
// 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
10
12
11
13
// With -clang-target, we build one X.pcm
12
14
// 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
13
16
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
15
17
// RUN: %FileCheck %s < %t.deps.json
16
18
17
19
// CHECK: "-clang-target"
18
- // CHECK-NEXT: "x86_64-apple-macosx10.14"
19
-
20
+ // CHECK-NEXT: "{{.*}}-apple-macosx10.14"
20
21
import X
21
22
import XWithTarget
You can’t perform that action at this time.
0 commit comments