<div dir="ltr"><div>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.</div><div><br></div><div>I'm not aware of a cleaner solution, but it would be nice.</div><div><br></div><div>Joel<br></div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 9, 2019 at 1:14 PM Gleb Popov via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hello.</div><div><br></div><div>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.</div><div><br></div><div>Is it possible to do that?</div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>