[PATCH] D60331: [gn] Support for building compiler-rt builtins

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 5 11:55:47 PDT 2019


phosek created this revision.
phosek added a reviewer: thakis.
Herald added subscribers: llvm-commits, jfb, dberris, srhines.
Herald added a project: LLVM.

This is support for building compiler-rt builtins, The library build
should be complete for a subset of supported platforms, but not all
CMake options have been replicated in GN.

We always use the just built compiler to build all the runtimes, which
is equivalent to the CMake runtimes build. This simplifies the build
configuration because we don't need to support arbitrary host compiler
and can always assume the latest Clang. With GN's toolchain support,
this is significantly more efficient than the CMake runtimes build.

This change also introduces the clang_enable_per_target_runtime_dir
to enable the use of per-target runtime directory layyou which is the
equivalent of LLVM_ENABLE_PER_TARGET_RUNTIME_DIR CMake option.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D60331

Files:
  llvm/utils/gn/secondary/BUILD.gn
  llvm/utils/gn/secondary/clang/runtimes.gni
  llvm/utils/gn/secondary/compiler-rt/BUILD.gn
  llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn
  llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn
  llvm/utils/gn/secondary/compiler-rt/target.gni

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60331.193928.patch
Type: text/x-patch
Size: 8340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190405/116d3d20/attachment.bin>


More information about the llvm-commits mailing list