[PATCH] [libcxx] Teach libcxx's lit configuration new ways to find lit.site.cfg

Eric Fiselier eric at efcs.ca
Thu Nov 13 14:19:57 PST 2014


Hi mclow.lists, danalbert, jroelofs,

Currently to run tests in tree you need to symlink the lit.site.cfg file generated by the cmake build into the source tree, and teach your VCS to ignore it.

This allows the user to specify where to find the lit.site.cfg file two different ways:
* lit_site_cfg lit parameter
* LIT_SITE_CFG enviroment variable. 

example usage:
```
lit -sv --param=libcxx_site_cfg=path/to/libcxx-build/test/lit.site.cfg path/to/tests
```
Or
```
export LIBCXX_SITE_CFG=path/to/libcxx-build/test/lit.site.cfg
lit -sv path/to/tests
```
The command line parameter will override the environment variable. 
If neither options are present a warning is issued and the `lit.cfg` file is loaded directly.

http://reviews.llvm.org/D6255

Files:
  test/lit.site.cfg
  www/index.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6255.16179.patch
Type: text/x-patch
Size: 1423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141113/a37a1115/attachment.bin>


More information about the cfe-commits mailing list