|
10 | 10 | // CACHE-SKIPPED: remark: compile job cache skipped
|
11 | 11 |
|
12 | 12 | // RUN: env LLVM_CACHE_CAS_PATH=%t/cas %clang-cache \
|
13 |
| -// RUN: %clang -target x86_64-apple-macos11 -c %s -o %t/t.o -Rcompile-job-cache 2> %t/out.txt |
| 13 | +// RUN: %clang -target x86_64-apple-macos11 -c %s -o %t/t.o -Rcompile-job-cache -Wreproducible-caching 2> %t/out.txt |
14 | 14 | // RUN: FileCheck %s --check-prefix=CACHE-WARN --input-file=%t/out.txt
|
15 | 15 |
|
16 | 16 | /// Check still a cache miss.
|
17 | 17 | // RUN: env LLVM_CACHE_CAS_PATH=%t/cas %clang-cache \
|
18 |
| -// RUN: %clang -target x86_64-apple-macos11 -c %s -o %t/t.o -Rcompile-job-cache 2> %t/out.txt |
| 18 | +// RUN: %clang -target x86_64-apple-macos11 -c %s -o %t/t.o -Rcompile-job-cache -Wreproducible-caching 2> %t/out.txt |
19 | 19 | // RUN: FileCheck %s --check-prefix=CACHE-WARN --input-file=%t/out.txt
|
20 | 20 |
|
21 | 21 | // CACHE-WARN: remark: compile job cache miss
|
|
24 | 24 | // CACHE-WARN: warning: encountered non-reproducible token, caching will be skipped
|
25 | 25 | // CACHE-WARN: remark: compile job cache skipped
|
26 | 26 |
|
| 27 | +/// Check -Werror doesn't actually error when we use the launcher. |
| 28 | +// RUN: env LLVM_CACHE_CAS_PATH=%t/cas %clang-cache \ |
| 29 | +// RUN: %clang -target x86_64-apple-macos11 -c %s -o %t/t.o -Werror -Rcompile-job-cache 2> %t/out.txt |
| 30 | +// RUN: FileCheck %s --check-prefix=NOERROR --input-file=%t/out.txt |
| 31 | +// RUN: not env LLVM_CACHE_CAS_PATH=%t/cas CLANG_CACHE_CHECK_REPRODUCIBLE_CACHING_ISSUES=1 %clang-cache \ |
| 32 | +// RUN: %clang -target x86_64-apple-macos11 -c %s -o %t/t.o -Rcompile-job-cache 2> %t/out.txt |
| 33 | +// RUN: FileCheck %s --check-prefix=ERROR --input-file=%t/out.txt |
| 34 | + |
| 35 | +// NOERROR-NOT: error: |
| 36 | +// ERROR: error: encountered non-reproducible token, caching will be skipped |
| 37 | + |
27 | 38 | void getit(const char **p1, const char **p2, const char **p3) {
|
28 | 39 | *p1 = __DATE__;
|
29 | 40 | *p2 = __TIMESTAMP__;
|
|
0 commit comments