aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2022-08-24 13:22:42 -0400
committerLouis Dionne <ldionne.2@gmail.com>2022-08-25 17:33:44 -0400
commitf2d957f03634c4e90c9847b92f197dff6e5aa315 (patch)
treede8a9a8a8ddd33a9dedd54e202e74b66d11e846f /clang/lib/Frontend/InitPreprocessor.cpp
parent15e997ac014b8ffe2e848b650110b55c4807900c (diff)
downloadllvm-f2d957f03634c4e90c9847b92f197dff6e5aa315.zip
llvm-f2d957f03634c4e90c9847b92f197dff6e5aa315.tar.gz
llvm-f2d957f03634c4e90c9847b92f197dff6e5aa315.tar.bz2
[libc++] Allow specifying conditional compile flags dependent on basic Lit features
This patch adds support for passing basic Lit features to the ADDITIONAL_COMPILE_FLAGS keyword by enclosing them in parentheses. This is done to support https://llvm.org/D131836. In the future, we should instead add proper support for conditional keywords in Lit, so that we can evaluate arbitrary Lit boolean expressions such as `ADDITIONAL_COMPILE_FLAGS(x && !y): -flag`. Note that I can see this being exceptionally useful when combined with RUN commands, which would allow using different commands on different systems. For example: RUN(!buildhost=windows): something RUN(buildhost=windows): something-else Differential Revision: https://reviews.llvm.org/D132575
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions