Right now the lit config builds up an environment that the tests will be run in. However, it does it from scratch instead of adding new variables to the parent process environment. This may (and does) result in strange behavior when running tests with an executor (i. e. with the COMPILER_RT_EMULATOR CMake variable set to something).
For example, I'm using the [ssh.py script from libc++](https://github.com/llvm/llvm-project/blob/master/libcxx/utils/ssh.py) as COMPILER_RT_EMULATOR to copy a test file to the remote machine and execute it there. Under the hood, that script executes the ssh command, which needs some environment variables set properly. Before this patch, the ssh command always returned the 255 exit code with no output whatsoever.
Here this is fixed.