[libcxx-commits] [PATCH] D107560: [libc++][libc++abi][CET] Support building libc++ and libc++abi with CET enabled.

Manoj Gupta via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 10 19:48:03 PDT 2021


manojgupta added a comment.

In D107560#2932805 <https://reviews.llvm.org/D107560#2932805>, @MaskRay wrote:

> Wait. Can't the user just specify `-fcf-protection=full` in CMAKE_CXX_FLAGS?

Is there a way to specify flags for libc++ when building libc++ with llvm/clang.

CET requires all libraries to be built with CET flags. So the use case is to build libraries with CET enabled but not clang itself as the build host may not have CET support. However, this clang binary can still link the instrumented libraries for running on a device with CET support.
Use case example:  -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi;libunwind;compiler-rt". Runtimes build could use it as well to produce runtimes that are CET instrumented.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107560/new/

https://reviews.llvm.org/D107560



More information about the libcxx-commits mailing list