[PATCH] D122569: [lit] Support %if ... %else syntax for RUN lines
Dan Liew via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 28 11:57:55 PDT 2022
delcypher added a comment.
Is
FileCheck %s --check-prefix={%if windows {W} else {NON-W}}
the main motivating example? You can already solve that by introducing a `%check_prefix` substitution in your `lit.cfg.py` file and expanding it to the correct thing depending on your platform. Would that suffice?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122569/new/
https://reviews.llvm.org/D122569
More information about the llvm-commits
mailing list