OSDN Git Service

[lit] Pass more environment variables through to child processes.
authorZachary Turner <zturner@google.com>
Tue, 27 Nov 2018 19:29:12 +0000 (19:29 +0000)
committerZachary Turner <zturner@google.com>
Tue, 27 Nov 2018 19:29:12 +0000 (19:29 +0000)
commit5b841f76e461fbfdef45372164b1d420b786a58b
treeaff16f7c4639e2fa0b17bdf26f519589694b5567
parent1b8b2696df568771c7f7562c903e3eb381c7c82e
[lit] Pass more environment variables through to child processes.

This arose when I was trying to have a substitution which invoked a
python script P, and that python script tried to invoke clang-cl (or
even cl). Since we invoke P with a custom environment, it doesn't
inherit the environment of the parent, and then when we go to invoke
clang-cl, it's unable to find the MSVC installation directory. There
were many more I could have passed through which are set by vcvarsall,
but I tried to keep it simple and only pass through the important ones.

Differential Revision: https://reviews.llvm.org/D54963

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347691 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/TestingConfig.py