|
90 | 90 | // RUN: -emit-obj %t/src/main.c -o %t/out/main.o -include-pch %t/out/prefix.h.pch -I %t/src/inc
|
91 | 91 | // RUN: %clang @%t/t3.rsp 2> %t/output3.txt
|
92 | 92 |
|
93 |
| -// RN: cat %t/output3.txt | sed \ |
94 |
| -// RN: -e "s/^.*miss for '//" \ |
95 |
| -// RN: -e "s/' .*$//" > %t/cache-key3 |
96 |
| - |
97 |
| -// RN: %clang -cc1depscan -fdepscan=inline -fdepscan-include-tree \ |
98 |
| -// RN: -fdepscan-prefix-map=%t/src2=/^src -fdepscan-prefix-map=%t/out2=/^out -fdepscan-prefix-map-toolchain=/^toolchain -fdepscan-prefix-map-sdk=/^sdk \ |
99 |
| -// RN: -o %t/t4.rsp -cc1-args \ |
100 |
| -// RN: -cc1 -triple x86_64-apple-macos11 -fcas-path %t/cas -faction-cache-path %t/cache -Rcompile-job-cache \ |
101 |
| -// RN: -resource-dir %S/Inputs/toolchain_dir/lib/clang/1000 -internal-isystem %S/Inputs/toolchain_dir/lib/clang/1000/include \ |
102 |
| -// RN: -isysroot %S/Inputs/SDK -internal-externc-isystem %S/Inputs/SDK/usr/include \ |
103 |
| -// RN: -debug-info-kind=standalone -dwarf-version=4 -debugger-tuning=lldb -fdebug-compilation-dir=%t/out2 \ |
104 |
| -// RN: -emit-obj %t/src2/main.c -o %t/out2/main.o -include-pch %t/out2/prefix.h.pch -I %t/src2/inc |
105 |
| -// RN: %clang @%t/t4.rsp 2> %t/output4.txt |
106 |
| - |
107 |
| -// RN: cat %t/output4.txt | sed \ |
108 |
| -// RN: -e "s/^.*hit for '//" \ |
109 |
| -// RN: -e "s/' .*$//" > %t/cache-key4 |
110 |
| - |
111 |
| -// RN: diff -u %t/cache-key3 %t/cache-key4 |
112 |
| -// RN: diff %t/out/main.o %t/out2/main.o |
| 93 | +// RUN: cat %t/output3.txt | sed \ |
| 94 | +// RUN: -e "s/^.*miss for '//" \ |
| 95 | +// RUN: -e "s/' .*$//" > %t/cache-key3 |
| 96 | + |
| 97 | +// RUN: %clang -cc1depscan -fdepscan=inline -fdepscan-include-tree \ |
| 98 | +// RUN: -fdepscan-prefix-map=%t/src2=/^src -fdepscan-prefix-map=%t/out2=/^out -fdepscan-prefix-map-toolchain=/^toolchain -fdepscan-prefix-map-sdk=/^sdk \ |
| 99 | +// RUN: -o %t/t4.rsp -cc1-args \ |
| 100 | +// RUN: -cc1 -triple x86_64-apple-macos11 -fcas-path %t/cas -faction-cache-path %t/cache -Rcompile-job-cache \ |
| 101 | +// RUN: -resource-dir %S/Inputs/toolchain_dir/lib/clang/1000 -internal-isystem %S/Inputs/toolchain_dir/lib/clang/1000/include \ |
| 102 | +// RUN: -isysroot %S/Inputs/SDK -internal-externc-isystem %S/Inputs/SDK/usr/include \ |
| 103 | +// RUN: -debug-info-kind=standalone -dwarf-version=4 -debugger-tuning=lldb -fdebug-compilation-dir=%t/out2 \ |
| 104 | +// RUN: -emit-obj %t/src2/main.c -o %t/out2/main.o -include-pch %t/out2/prefix.h.pch -I %t/src2/inc |
| 105 | +// RUN: %clang @%t/t4.rsp 2> %t/output4.txt |
| 106 | + |
| 107 | +// RUN: cat %t/output4.txt | sed \ |
| 108 | +// RUN: -e "s/^.*hit for '//" \ |
| 109 | +// RUN: -e "s/' .*$//" > %t/cache-key4 |
| 110 | + |
| 111 | +// RUN: diff -u %t/cache-key3 %t/cache-key4 |
| 112 | +// RUN: diff %t/out/main.o %t/out2/main.o |
113 | 113 |
|
114 | 114 | //--- main.c
|
115 | 115 | #include "t.h"
|
|
0 commit comments