[PATCH] D88932: [runtimes][compiler-rt] Add optional runtimes step to build crt up front

David Tenty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 6 15:29:04 PDT 2020


daltenty created this revision.
daltenty added reviewers: hubert.reinterpretcast, stevewan, phosek.
Herald added subscribers: llvm-commits, Sanitizers, s.egerton, jfb, simoncook, fedor.sergeev, mgorny, dberris.
Herald added projects: Sanitizers, LLVM.
daltenty requested review of this revision.
Herald added a subscriber: aheejin.

When building runtimes, the built compiler may depend on components from
compiler-rt's crt module depending on the target and configuration, and
thus have difficulty passing CMake  configuration test if crt is not
already available (the same as is true for compiler-rt builtins).

Similar to builtins, this change provides the ability to build
crt prior to trying to build the rest of runtimes, in order to resolve
this dependency.  This includes adding a standalone header to the crt
CMakeLists.txt and a separate crt-config-ix.cmake both in the same
style as what is currently done for builtins.

Enabling this build behavior is gated under the LLVM_RUNTIMES_CRT_STANDALONE_BUILD
variable, so the default build is unmodified and specific configurations
that need it can opt-in to it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88932

Files:
  compiler-rt/cmake/config-ix.cmake
  compiler-rt/cmake/crt-config-ix.cmake
  compiler-rt/lib/crt/CMakeLists.txt
  llvm/runtimes/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88932.296555.patch
Type: text/x-patch
Size: 7144 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201006/e8982a7a/attachment.bin>


More information about the llvm-commits mailing list