Author: Arthur Eubanks
Date: 2025-03-18T13:19:41-07:00
New Revision: 71f391040969c0dbdf4398a78a742b1a730e2e38

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

LOG: [clang][lit] mkdir before mkstemp in is_filesystem_case_insensitive() 
(#131036)

In the CMake build test_exec_root already exists here, but not in the gn
build, which causes this to fail.

Added: 
    

Modified: 
    clang/test/lit.cfg.py

Removed: 
    


################################################################################
diff  --git a/clang/test/lit.cfg.py b/clang/test/lit.cfg.py
index 025ef7a9133ea..8f1392b6a1f8f 100644
--- a/clang/test/lit.cfg.py
+++ b/clang/test/lit.cfg.py
@@ -261,6 +261,7 @@ def have_host_clang_repl_cuda():
 
 
 def is_filesystem_case_insensitive():
+    os.makedirs(config.test_exec_root, exist_ok=True)
     handle, path = tempfile.mkstemp(prefix="case-test", 
dir=config.test_exec_root)
     isInsensitive = os.path.exists(
         os.path.join(os.path.dirname(path), os.path.basename(path).upper())


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to