[llvm-dev] lit: Execute RUN statement depending on features available

Joel E. Denny via llvm-dev llvm-dev at lists.llvm.org
Sat Nov 9 10:37:59 PST 2019

In some of my downstream work, I've configured lit substitutions that
expand to the empty string or `:` depending on the presence of features,
and I've put those at the start of the affected RUN commands.  However,
this doesn't stop pipes or redirects, so I always use redirects to files
that are fine to truncate when the RUN line is to be skipped.

I'm not aware of a cleaner solution, but it would be nice.


On Sat, Nov 9, 2019 at 1:14 PM Gleb Popov via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hello.
> I know there is UNSUPPORTED keyword in lit that makes it ignore whole
> testcase based on presence of some feature. However, in my test I want to
> always RUN line A, but RUN line B only if "windows" feature is enabled.
> Is it possible to do that?
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191109/a646ee98/attachment.html>

More information about the llvm-dev mailing list