Author: Bruno Cardoso Lopes Date: 2022-09-09T16:20:04-07:00 New Revision: f4a13c9c0a049d40e0365477c58c2a5369eda6dc
URL: https://github.com/llvm/llvm-project/commit/f4a13c9c0a049d40e0365477c58c2a5369eda6dc DIFF: https://github.com/llvm/llvm-project/commit/f4a13c9c0a049d40e0365477c58c2a5369eda6dc.diff LOG: [Clang][ScanDeps] Change multiple-commands.c test to use -fmodules-cache-path on implicit builds The module cache escapes the test output dirs in this test. Since its default location maybe composed of system and user related path this can cause problems in some builders (e.g. not accessible paths inherited in a chroot environment). Clean the test a bit by passing `-fmodules-cache-path` inside the test output dirs. Differential Revision: https://reviews.llvm.org/D133617 Added: Modified: clang/test/ClangScanDeps/multiple-commands.c Removed: ################################################################################ diff --git a/clang/test/ClangScanDeps/multiple-commands.c b/clang/test/ClangScanDeps/multiple-commands.c index 6640d40e6e7c6..bb169ea10995a 100644 --- a/clang/test/ClangScanDeps/multiple-commands.c +++ b/clang/test/ClangScanDeps/multiple-commands.c @@ -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=DIR/cache" "file": "DIR/tu_save_temps_module.c" } ] _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits