[PATCH] D32910: [Lit] Fix to prevent creation of "%SystemDrive%" directory on Windows.
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 8 02:08:48 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL302409: [Lit] Fix to prevent creation of "%SystemDrive%" directory on Windows. (authored by anng).
Changed prior to commit:
https://reviews.llvm.org/D32910?vs=97957&id=98141#toc
Repository:
rL LLVM
https://reviews.llvm.org/D32910
Files:
llvm/trunk/test/Unit/lit.cfg
Index: llvm/trunk/test/Unit/lit.cfg
===================================================================
--- llvm/trunk/test/Unit/lit.cfg
+++ llvm/trunk/test/Unit/lit.cfg
@@ -43,6 +43,10 @@
config.environment['PATH'] = os.path.pathsep.join((
config.shlibdir, config.environment['PATH']))
+# Win32 may use %SYSTEMDRIVE% during file system shell operations, so propogate.
+if sys.platform == 'win32' and 'SYSTEMDRIVE' in os.environ:
+ config.environment['SYSTEMDRIVE'] = os.environ['SYSTEMDRIVE']
+
###
# Check that the object root is known.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32910.98141.patch
Type: text/x-patch
Size: 566 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170508/9a343a6c/attachment.bin>
More information about the llvm-commits
mailing list