[clang] d5c0f2d - [modules][test] Use -fmodules-cache-path= in test (#160179)

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 22 13:59:34 PDT 2025


Author: Pranav Kant
Date: 2025-09-22T13:59:30-07:00
New Revision: d5c0f2d7afb747fc1bf52db4d0476329be0dcf0f

URL: https://github.com/llvm/llvm-project/commit/d5c0f2d7afb747fc1bf52db4d0476329be0dcf0f
DIFF: https://github.com/llvm/llvm-project/commit/d5c0f2d7afb747fc1bf52db4d0476329be0dcf0f.diff

LOG: [modules][test] Use -fmodules-cache-path= in test (#160179)

Otherwise test may fail on some systems.

Fixes tests after #159771

Added: 
    

Modified: 
    clang/test/Modules/named-module-with-fmodules.cppm

Removed: 
    


################################################################################
diff  --git a/clang/test/Modules/named-module-with-fmodules.cppm b/clang/test/Modules/named-module-with-fmodules.cppm
index a4f7fbec3b176..5fab9f3c75ea1 100644
--- a/clang/test/Modules/named-module-with-fmodules.cppm
+++ b/clang/test/Modules/named-module-with-fmodules.cppm
@@ -7,7 +7,7 @@
 // RUN: split-file %s %t
 
 // RUN: %clang -std=c++23 -fmodules -fmodule-map-file=%t/module.modulemap \
-// RUN:   --precompile %t/A.cppm -o %t/A.pcm
+// RUN:   -fmodules-cache-path=%t --precompile %t/A.cppm -o %t/A.pcm
 
 //--- module.modulemap
 module foo { header "foo.h" }


        


More information about the cfe-commits mailing list