diff --git a/clang/test/ClangScanDeps/multiple-commands.c b/clang/test/ClangScanDeps/multiple-commands.c --- a/clang/test/ClangScanDeps/multiple-commands.c +++ b/clang/test/ClangScanDeps/multiple-commands.c @@ -6,9 +6,9 @@ // the driver. Platforms without an integrated assembler have different commands // REQUIRES: x86-registered-target -// RUN: rm -rf %t +// RUN: rm -rf %t %t.modcache // RUN: split-file %s %t -// RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.in > %t/cdb.json +// RUN: sed -e "s|DIR|%/t|g" -e "s|CACHE_PATH|%t.modcache|g" %t/cdb.json.in > %t/cdb.json // RUN: clang-scan-deps -compilation-database %t/cdb.json -module-files-dir %t/modules \ // RUN: -j 1 -format experimental-full -mode preprocess-dependency-directives \ @@ -150,7 +150,7 @@ }, { "directory": "DIR" - "command": "clang_tool -target x86_64-apple-darwin -c DIR/tu_save_temps_module.c -save-temps=obj -o DIR/tu_save_temps_module.o -fmodules -fimplicit-modules -fimplicit-module-maps" + "command": "clang_tool -target x86_64-apple-darwin -c DIR/tu_save_temps_module.c -save-temps=obj -o DIR/tu_save_temps_module.o -fmodules -fimplicit-modules -fimplicit-module-maps -fmodules-cache-path=CACHE_PATH" "file": "DIR/tu_save_temps_module.c" } ]