[PATCH] D126717: [pseudo] Add PSEUDO_GEN cmake cache variable to avoid nested CMake invocation
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 3 11:50:27 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG830d158d2b7d: [pseudo] Add CLANG_PSEUDO_GEN cmake cache variable to avoid nested CMake… (authored by sammccall).
Changed prior to commit:
https://reviews.llvm.org/D126717?vs=433164&id=434094#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126717/new/
https://reviews.llvm.org/D126717
Files:
clang-tools-extra/pseudo/include/CMakeLists.txt
Index: clang-tools-extra/pseudo/include/CMakeLists.txt
===================================================================
--- clang-tools-extra/pseudo/include/CMakeLists.txt
+++ clang-tools-extra/pseudo/include/CMakeLists.txt
@@ -1,7 +1,13 @@
# The cxx.bnf grammar file
set(cxx_bnf ${CMAKE_CURRENT_SOURCE_DIR}/../lib/cxx.bnf)
-if(LLVM_USE_HOST_TOOLS)
+set(CLANG_PSEUDO_GEN "clang-pseudo-gen" CACHE
+ STRING "Host clang-pseudo-gen executable. Saves building if cross-compiling.")
+
+if(NOT CLANG_PSEUDO_GEN STREQUAL "clang-pseudo-gen")
+ set(pseudo_gen ${CLANG_PSEUDO_GEN})
+ set(pseudo_gen_target ${CLANG_PSEUDO_GEN})
+elseif(LLVM_USE_HOST_TOOLS)
build_native_tool(clang-pseudo-gen pseudo_gen)
set(pseudo_gen_target "${pseudo_gen}")
else()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126717.434094.patch
Type: text/x-patch
Size: 755 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220603/2f977991/attachment.bin>
More information about the cfe-commits
mailing list