rnk added a comment. This has a few bugs. 'env' should only affect a single command, and it should only affect one command in the pipeline. The env should be reset for the next command in the pipeline. I'm drafting a patch to handle these edge cases, and I'll let you know when it lands. http://reviews.llvm.org/D11350