[PATCH] D99304: [LLD] Fix probing a MSYS based 'tar' in a Windows Container
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 25 00:54:05 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa88556733a4d: [LLD] Fix probing a MSYS based 'tar' in a Windows Container (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99304/new/
https://reviews.llvm.org/D99304
Files:
lld/test/lit.cfg.py
Index: lld/test/lit.cfg.py
===================================================================
--- lld/test/lit.cfg.py
+++ lld/test/lit.cfg.py
@@ -101,11 +101,13 @@
tar_executable = lit.util.which('tar', config.environment['PATH'])
if tar_executable:
+ env = os.environ
+ env['LANG'] = 'C'
tar_version = subprocess.Popen(
[tar_executable, '--version'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
- env={'LANG': 'C'})
+ env=env)
sout, _ = tar_version.communicate()
if 'GNU tar' in sout.decode():
config.available_features.add('gnutar')
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99304.333228.patch
Type: text/x-patch
Size: 615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210325/6d0ac10b/attachment.bin>
More information about the llvm-commits
mailing list