Skip to content

Commit fcba34f

Browse files
jansvoboda11Bigcheese
authored andcommitted
[clang][deps] Fix failing test relying on remarks in system modules
This started failing after llvm#71612. (cherry picked from commit 07d662d)
1 parent 5d102dd commit fcba34f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

clang/test/ClangScanDeps/modules-cas-fs-prefix-mapping-caching.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
// RUN: clang-scan-deps -compilation-database %t/dir1/cdb.json -format experimental-full \
1212
// RUN: -cas-path %t/cas -module-files-dir %t/dir1/modules \
1313
// RUN: -prefix-map-sdk=/^sdk -prefix-map-toolchain=/^tc \
14-
// RUN: -prefix-map=%t/dir1/modules=/^modules -prefix-map=%t/dir1=/^src \
14+
// RUN: -prefix-map=%t/dir1/modules=/^modules -prefix-map=%t/dir1=/^src -optimize-args=none \
1515
// RUN: > %t/dir1.txt
1616

1717
// RUN: clang-scan-deps -compilation-database %t/dir2/cdb.json -format experimental-full \
1818
// RUN: -cas-path %t/cas -module-files-dir %t/dir2/modules \
1919
// RUN: -prefix-map-sdk=/^sdk -prefix-map-toolchain=/^tc \
20-
// RUN: -prefix-map=%t/dir2/modules=/^modules -prefix-map=%t/dir2=/^src \
20+
// RUN: -prefix-map=%t/dir2/modules=/^modules -prefix-map=%t/dir2=/^src -optimize-args=none \
2121
// RUN: > %t/dir2.txt
2222

2323
// Extract individual commands.

clang/test/ClangScanDeps/modules-include-tree-prefix-map.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// RUN: clang-scan-deps -compilation-database %t/cdb1.json \
1010
// RUN: -cas-path %t/cas -module-files-dir %t/dir1/outputs \
1111
// RUN: -prefix-map=%t/dir1/outputs=/^modules -prefix-map=%t/dir1=/^src -prefix-map-sdk=/^sdk -prefix-map-toolchain=/^tc \
12-
// RUN: -format experimental-include-tree-full -mode preprocess-dependency-directives \
12+
// RUN: -format experimental-include-tree-full -mode preprocess-dependency-directives -optimize-args=none \
1313
// RUN: > %t/deps.json
1414

1515
// Extract the include-tree commands
@@ -291,7 +291,7 @@
291291
// RUN: clang-scan-deps -compilation-database %t/cdb2.json \
292292
// RUN: -cas-path %t/cas -module-files-dir %t/dir2/outputs \
293293
// RUN: -prefix-map=%t/dir2/outputs=/^modules -prefix-map=%t/dir2=/^src -prefix-map-sdk=/^sdk -prefix-map-toolchain=/^tc \
294-
// RUN: -format experimental-include-tree-full -mode preprocess-dependency-directives \
294+
// RUN: -format experimental-include-tree-full -mode preprocess-dependency-directives -optimize-args=none \
295295
// RUN: > %t/deps2.json
296296

297297
// RUN: %deps-to-rsp %t/deps2.json --module-name Top > %t/Top2.rsp

clang/test/ClangScanDeps/modules-pch-cas-fs-prefix-mapping-caching.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
// RUN: sed -e "s|DIR|%t/dir2|g" -e "s|CLANG|%clang|g" -e "s|SDK|%S/Inputs/SDK|g" %t/cdb_pch.json.template > %t/dir2/cdb_pch.json
1212

1313
// == Scan PCH
14-
// RUN: clang-scan-deps -compilation-database %t/dir1/cdb_pch.json -format experimental-full \
14+
// RUN: clang-scan-deps -compilation-database %t/dir1/cdb_pch.json -format experimental-full -optimize-args=none \
1515
// RUN: -cas-path %t/cas -module-files-dir %t/dir1/modules \
1616
// RUN: -prefix-map=%t/dir1/modules=/^modules -prefix-map=%t/dir1=/^src -prefix-map-sdk=/^sdk -prefix-map-toolchain=/^tc \
1717
// RUN: > %t/pch_dir1.txt
1818

19-
// RUN: clang-scan-deps -compilation-database %t/dir2/cdb_pch.json -format experimental-full \
19+
// RUN: clang-scan-deps -compilation-database %t/dir2/cdb_pch.json -format experimental-full -optimize-args=none \
2020
// RUN: -cas-path %t/cas -module-files-dir %t/dir2/modules \
2121
// RUN: -prefix-map=%t/dir2/modules=/^modules -prefix-map=%t/dir2=/^src -prefix-map-sdk=/^sdk -prefix-map-toolchain=/^tc \
2222
// RUN: > %t/pch_dir2.txt
@@ -41,12 +41,12 @@
4141
// CACHE-HIT: compile job cache hit
4242

4343
// == Scan TU, including PCH
44-
// RUN: clang-scan-deps -compilation-database %t/dir1/cdb.json -format experimental-full \
44+
// RUN: clang-scan-deps -compilation-database %t/dir1/cdb.json -format experimental-full -optimize-args=none \
4545
// RUN: -cas-path %t/cas -module-files-dir %t/dir1/modules \
4646
// RUN: -prefix-map=%t/dir1/modules=/^modules -prefix-map=%t/dir1=/^src -prefix-map-sdk=/^sdk -prefix-map-toolchain=/^tc \
4747
// RUN: > %t/dir1.txt
4848

49-
// RUN: clang-scan-deps -compilation-database %t/dir2/cdb.json -format experimental-full \
49+
// RUN: clang-scan-deps -compilation-database %t/dir2/cdb.json -format experimental-full -optimize-args=none \
5050
// RUN: -cas-path %t/cas -module-files-dir %t/dir2/modules \
5151
// RUN: -prefix-map=%t/dir2/modules=/^modules -prefix-map=%t/dir2=/^src -prefix-map-sdk=/^sdk -prefix-map-toolchain=/^tc \
5252
// RUN: > %t/dir2.txt

0 commit comments

Comments
 (0)