mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 16:56:35 +00:00
[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.
This commit is contained in:
parent
7d7b58bc5d
commit
71f3910409
@ -261,6 +261,7 @@ if platform.system() not in ["Darwin", "Fuchsia"]:
|
||||
|
||||
|
||||
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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user