[PATCH] D105603: [X86][CET] Support to build LLVM toolchain with CET enabled.

Manoj Gupta via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 19 10:13:42 PDT 2021


manojgupta added inline comments.


================
Comment at: llvm/cmake/modules/HandleLLVMOptions.cmake:372
+if(NOT WIN32)
+  if( LLVM_BUILD_CET_ENABLE)
+    add_flag_if_supported("-fcf-protection=full" CET)
----------------
I am not an expert in CMake but I think we need to add support for this option per subproject as well since the projects can be built independent of LLVM  e.g. : compiler-rt, libcxx, libcxxbi, libunwind can be built separately without compiling llvm.



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105603



More information about the llvm-commits mailing list