[PATCH] D55184: [gn build] Process .def.in files in llvm/include/Config and that to add a build file for llvm/lib/Target

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 2 16:50:22 PST 2018


thakis created this revision.
thakis added a reviewer: phosek.
Herald added subscribers: hiraditya, mgorny.

Tweak write_cmake_config.py to also handle variable references looking @FOO@  (matching CMake's configure_file() function), and make it replace '\' 'n' in values with a newline literal since there's no good portable way of passing a real newline literal on a command line.

Use that to process all the .def.in files in llvm/include/Config and add llvm/lib/Target, which (indirectly, through llvm-c/Target.h) includes them.


https://reviews.llvm.org/D55184

Files:
  llvm/utils/gn/build/write_cmake_config.py
  llvm/utils/gn/secondary/BUILD.gn
  llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/BUILD.gn

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55184.176307.patch
Type: text/x-patch
Size: 7696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181203/29a5ef93/attachment.bin>


More information about the llvm-commits mailing list