|
15 | 15 | // RUN: -resource-dir %S/Inputs/toolchain_dir/usr/lib/clang/1000 \
|
16 | 16 | // RUN: -internal-isystem %S/Inputs/toolchain_dir/usr/lib/clang/1000/include \
|
17 | 17 | // RUN: -working-directory %t.d \
|
18 |
| -// RUN: -fcas-path %t.d/cas \ |
| 18 | +// RUN: -fcas-path %t.d/cas -faction-cache-path %t.d/cache \ |
19 | 19 | // RUN: | FileCheck %s -DPREFIX=%t.d
|
20 | 20 | // RUN: %clang -cc1depscan -dump-depscan-tree=%t.root -fdepscan=inline \
|
21 | 21 | // RUN: -fdepscan-prefix-map=%S=/^source \
|
|
28 | 28 | // RUN: -resource-dir %S/Inputs/toolchain_dir/lib/clang/1000 \
|
29 | 29 | // RUN: -internal-isystem %S/Inputs/toolchain_dir/lib/clang/1000/include \
|
30 | 30 | // RUN: -working-directory %t.d \
|
31 |
| -// RUN: -fcas-path %t.d/cas \ |
| 31 | +// RUN: -fcas-path %t.d/cas -faction-cache-path %t.d/cache \ |
32 | 32 | // RUN: | FileCheck %s -DPREFIX=%t.d
|
33 |
| -// RUN: %clang -cc1depscand -execute %{clang-daemon-dir}/%basename_t -cas-args -fcas-path %t.d/cas -- \ |
| 33 | +// RUN: %clang -cc1depscand -execute %{clang-daemon-dir}/%basename_t \ |
| 34 | +// RUN: -cas-args -fcas-path %t.d/cas -faction-cache-path %t.d/cache -- \ |
34 | 35 | // RUN: %clang -cc1depscan -dump-depscan-tree=%t.root -fdepscan=daemon \
|
35 | 36 | // RUN: -fdepscan-daemon=%{clang-daemon-dir}/%basename_t \
|
36 | 37 | // RUN: -fdepscan-prefix-map=%S=/^source \
|
|
43 | 44 | // RUN: -resource-dir %S/Inputs/toolchain_dir/usr/lib/clang/1000 \
|
44 | 45 | // RUN: -internal-isystem %S/Inputs/toolchain_dir/usr/lib/clang/1000/include \
|
45 | 46 | // RUN: -working-directory %t.d \
|
46 |
| -// RUN: -fcas-path %t.d/cas \ |
| 47 | +// RUN: -fcas-path %t.d/cas -faction-cache-path %t.d/cache \ |
47 | 48 | // RUN: | FileCheck %s -DPREFIX=%t.d
|
48 | 49 | //
|
49 | 50 | // CHECK: "-fcas-path" "[[PREFIX]]/cas"
|
|
63 | 64 | // CHECK-ROOT-NEXT: file {{.*}} /^source/depscan-prefix-map.c{{$}}
|
64 | 65 | // CHECK-ROOT-NEXT: file {{.*}} /^toolchain/usr/lib/clang/1000/include/stdarg.h{{$}}
|
65 | 66 |
|
66 |
| -// RUN: not %clang -cc1depscand -execute %{clang-daemon-dir}/%basename_t -cas-args -fcas-path %t.d/cas -- \ |
| 67 | +// RUN: not %clang -cc1depscand -execute %{clang-daemon-dir}/%basename_t \ |
| 68 | +// RUN: -cas-args -fcas-path %t.d/cas -faction-cache-path %t.d/cache -- \ |
67 | 69 | // RUN: %clang -cc1depscan -dump-depscan-tree=%t.root -fdepscan=daemon \
|
68 | 70 | // RUN: -fdepscan-daemon=%{clang-daemon-dir}/%basename_t \
|
69 | 71 | // RUN: -fdepscan-prefix-map=/=/^foo \
|
70 | 72 | // RUN: -cc1-args -triple x86_64-apple-macos11.0 -x c %s -o %t.d/out.o \
|
| 73 | +// RUN: -fcas-path %t.d/cas -faction-cache-path %t.d/cache \ |
71 | 74 | // RUN: 2>&1 | FileCheck %s -DPREFIX=%t.d -check-prefix=ERROR_ROOT
|
72 | 75 | // ERROR_ROOT: invalid prefix map: '/=/^foo'
|
73 | 76 |
|
74 |
| -// RUN: not %clang -cc1depscand -execute %{clang-daemon-dir}/%basename_t -cas-args -fcas-path %t.d/cas -- \ |
| 77 | +// RUN: not %clang -cc1depscand -execute %{clang-daemon-dir}/%basename_t \ |
| 78 | +// RUN: -cas-args -fcas-path %t.d/cas -faction-cache-path %t.d/cache -- \ |
75 | 79 | // RUN: %clang -cc1depscan -dump-depscan-tree=%t.root -fdepscan=daemon \
|
76 | 80 | // RUN: -fdepscan-daemon=%{clang-daemon-dir}/%basename_t \
|
77 | 81 | // RUN: -fdepscan-prefix-map==/^foo \
|
78 | 82 | // RUN: -cc1-args -triple x86_64-apple-macos11.0 -x c %s -o %t.d/out.o \
|
| 83 | +// RUN: -fcas-path %t.d/cas -faction-cache-path %t.d/cache \ |
79 | 84 | // RUN: 2>&1 | FileCheck %s -DPREFIX=%t.d -check-prefix=ERROR_EMPTY
|
80 | 85 | // ERROR_EMPTY: invalid prefix map: '=/^foo'
|
81 | 86 |
|
82 |
| -// RUN: not %clang -cc1depscand -execute %{clang-daemon-dir}/%basename_t -cas-args -fcas-path %t.d/cas -- \ |
| 87 | +// RUN: not %clang -cc1depscand -execute %{clang-daemon-dir}/%basename_t \ |
| 88 | +// RUN: -cas-args -fcas-path %t.d/cas -faction-cache-path %t.d/cache -- \ |
83 | 89 | // RUN: %clang -cc1depscan -dump-depscan-tree=%t.root -fdepscan=daemon \
|
84 | 90 | // RUN: -fdepscan-daemon=%{clang-daemon-dir}/%basename_t \
|
85 | 91 | // RUN: -fdepscan-prefix-map=relative=/^foo \
|
86 | 92 | // RUN: -cc1-args -triple x86_64-apple-macos11.0 -x c %s -o %t.d/out.o \
|
| 93 | +// RUN: -fcas-path %t.d/cas -faction-cache-path %t.d/cache \ |
87 | 94 | // RUN: 2>&1 | FileCheck %s -DPREFIX=%t.d -check-prefix=ERROR_RELATIVE
|
88 | 95 | // ERROR_RELATIVE: invalid prefix map: 'relative=/^foo'
|
89 | 96 |
|
|
0 commit comments