Trick-17 / clang-build

Clang-based cross platform build system written in Python
https://clang-build.readthedocs.io
MIT License
8 stars 3 forks source link

Exclude pattern #122

Open NOhs opened 3 years ago

NOhs commented 3 years ago

Has the exclude pattern ever been used? It is not part of any test and it look broken. Most functions in the io_tools.py do not pass on the exclude_patterns and the one direct call passes existing files as "patterns" to the function.

GPMueller commented 3 years ago

It might have indeed gone untested for some time, but it definitely used to work fine. I used it for boost and a few other libraries, in particular to exclude tests for concepts and such, where a compilation failure is expected (e.g. sources_exclude = ["*fail*"]). As far as I can tell, exclude patterns are the only sensible way to allow "deselecting" certain files or folders.