[PATCH] pass environment when invoking llvm-config, etc. from lit.cfg

scott douglass sdouglass at arm.com
Mon Sep 22 02:59:36 PDT 2014


Hi,

 

There are places in llvm/test/lit.cfg and clang/test/lit.cfg where
llvm-config and/or clang are invoked without using config.enviroment which
means that environment variables like ASAN_OPTIONS, INCLUDE, ... will not be
available.

 

I noticed this when running a hacked tool that needed particular
ASAN_OPTIONS to run correctly.  Patches attached, but I don't know how to
write a regression test that works in the normal case since the changed code
runs before the lit tests. Suggestions appreciated.

 

[I have sent this to both llvm-commits and cfe-commits because the changes
are analogous.  My apologies if that was not the right thing to do.]

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140922/05c5d142/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-lit-cfg-env.patch
Type: application/octet-stream
Size: 477 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140922/05c5d142/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-lit-cfg-env.patch
Type: application/octet-stream
Size: 1030 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140922/05c5d142/attachment-0001.obj>


More information about the llvm-commits mailing list