4
4
// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O \
5
5
// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \
6
6
// RUN: -blocklist-file %t/blocklist.yml -blocklist-file %t/empty.yml \
7
+ // RUN: -scanner-prefix-map %t=/^tmp -I %t/include \
7
8
// RUN: %t/main.swift -o %t/deps.json -cache-compile-job -cas-path %t/cas
8
9
9
10
// RUN: %{python} %S/Inputs/BuildCommandExtractor.py %t/deps.json clang:SwiftShims > %t/shim.cmd
10
11
// RUN: %swift_frontend_plain @%t/shim.cmd
12
+ // RUN: %{python} %S/Inputs/BuildCommandExtractor.py %t/deps.json A > %t/A.cmd
13
+ // RUN: %swift_frontend_plain @%t/A.cmd
14
+
15
+ // RUN: %FileCheck %s -check-prefix CMD -input-file=%t/A.cmd
16
+ // CMD: -blocklist-file
17
+ // CMD-NEXT: /^tmp/blocklist.yml
18
+ // CMD-NEXT: -blocklist-file
19
+ // CMD-NEXT: /^tmp/empty.yml
11
20
12
21
// RUN: %{python} %S/Inputs/SwiftDepsExtractor.py %t/deps.json Test casFSRootID > %t/fs.casid
13
22
// DISABLE: llvm-cas --cas %t/cas --ls-tree-recursive @%t/fs.casid | %FileCheck %s -check-prefix FS
25
34
// RUN: -swift-version 5 -disable-implicit-swift-modules \
26
35
// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \
27
36
// RUN: -module-name Test -explicit-swift-module-map-file @%t/map.casid \
28
- // RUN: -blocklist-file %t/ blocklist.yml -blocklist-file %t /empty.yml \
37
+ // RUN: -blocklist-file /^tmp/ blocklist.yml -blocklist-file /^tmp /empty.yml \
29
38
// RUN: -enable-layout-string-value-witnesses -enable-layout-string-value-witnesses-instantiation \
30
39
// RUN: -enable-experimental-feature LayoutStringValueWitnesses -enable-experimental-feature LayoutStringValueWitnessesInstantiation \
31
- // RUN: %t/main.swift @%t/MyApp.cmd 2>&1 | %FileCheck %s --check-prefix CHECK-BLOCKED
40
+ // RUN: -cache-replay-prefix-map /^tmp=%t \
41
+ // RUN: /^tmp/main.swift @%t/MyApp.cmd 2>&1 | %FileCheck %s --check-prefix CHECK-BLOCKED
32
42
33
43
// CHECK-BLOCKED: note: Layout string value witnesses have been disabled for module 'Test' through block list entry
34
44
// CHECK-BLOCKED-NOT: type_layout_string
35
45
36
46
//--- main.swift
47
+ import A
37
48
public struct Bar {
38
49
let x : Int
39
50
let y : AnyObject
@@ -45,6 +56,11 @@ public enum Foo {
45
56
case c
46
57
}
47
58
59
+ //--- include/A.swiftinterface
60
+ // swift-interface-format-version: 1.0
61
+ // swift-module-flags: -module-name A -O -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib -user-module-version 1.0
62
+ public func a( ) { }
63
+
48
64
//--- blocklist.yml
49
65
---
50
66
ShouldUseLayoutStringValueWitnesses:
0 commit comments