search for: some_root

Displaying 1 result from an estimated 1 matches for "some_root".

Did you mean: node_root
2018 Jan 01
0
lit: dependent substitutions?
...troduce substitutions for the source path relative to the source root. This seems generally useful -- if there was a way in lit.cfg to register a function for substitution instead of a simple pair, we could do stuff like: config.xsubstitutions.append(('%r', lambda s: os.path.relpath(s, some_root))) Most of the simple builtin substitutions are variations on this theme, so I guess they could be implemented similarly. Is this a useful direction? Would you accept lit patches to that end? Thanks, - Kim