[PATCH] D118071: [SystemZ][z/OS]: fix lit tmp_dir to use - instead of _

Nancy Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 24 14:35:53 PST 2022


NancyWang2222 updated this revision to Diff 402670.
NancyWang2222 added a comment.

Simplify the comments


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118071/new/

https://reviews.llvm.org/D118071

Files:
  llvm/utils/lit/lit/main.py


Index: llvm/utils/lit/lit/main.py
===================================================================
--- llvm/utils/lit/lit/main.py
+++ llvm/utils/lit/lit/main.py
@@ -245,7 +245,8 @@
     tmp_dir = None
     if 'LIT_PRESERVES_TMP' not in os.environ:
         import tempfile
-        tmp_dir = tempfile.mkdtemp(prefix='lit_tmp_')
+        # z/OS linker does not support '_' in paths, so use '-'.
+        tmp_dir = tempfile.mkdtemp(prefix='lit-tmp-')
         tmp_dir_envs = {k: tmp_dir for k in ['TMP', 'TMPDIR', 'TEMP', 'TEMPDIR']}
         os.environ.update(tmp_dir_envs)
         for cfg in {t.config for t in run.tests}:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118071.402670.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220124/d3692435/attachment.bin>


More information about the llvm-commits mailing list