[PATCH] D105603: [X86][CET] Support to build LLVM toolchain with CET enabled.
xiongji90 via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 21 20:45:03 PDT 2021
xiongji90 updated this revision to Diff 360689.
xiongji90 edited the summary of this revision.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105603/new/
https://reviews.llvm.org/D105603
Files:
llvm/CMakeLists.txt
llvm/cmake/modules/LLVMConfig.cmake.in
llvm/docs/CMake.rst
Index: llvm/docs/CMake.rst
===================================================================
--- llvm/docs/CMake.rst
+++ llvm/docs/CMake.rst
@@ -291,6 +291,10 @@
Build 32-bit executables and libraries on 64-bit systems. This option is
available only on some 64-bit Unix systems. Defaults to OFF.
+**LLVM_BUILD_CET_ENABLE**:BOOL
+ Build executables and libraries with CET enabled. CET is currently implemented
+ in x86 GNU/Linux target. Defaults to OFF.
+
**LLVM_BUILD_BENCHMARKS**:BOOL
Adds benchmarks to the list of default targets. Defaults to OFF.
Index: llvm/cmake/modules/LLVMConfig.cmake.in
===================================================================
--- llvm/cmake/modules/LLVMConfig.cmake.in
+++ llvm/cmake/modules/LLVMConfig.cmake.in
@@ -74,6 +74,8 @@
set(LLVM_BUILD_32_BITS @LLVM_BUILD_32_BITS@)
+set(LLVM_BUILD_CET_ENABLE @LLVM_BUILD_CET_ENABLE@)
+
if (NOT "@LLVM_PTHREAD_LIB@" STREQUAL "")
set(LLVM_PTHREAD_LIB "@LLVM_PTHREAD_LIB@")
endif()
Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -513,6 +513,10 @@
option(LLVM_BUILD_32_BITS "Build 32 bits executables and libraries." OFF)
endif()
+if(NOT WIN32)
+ option(LLVM_BUILD_CET_ENABLE "Build executables and libraries with CET enabled." OFF)
+endif()
+
# Define the default arguments to use with 'lit', and an option for the user to
# override.
set(LIT_ARGS_DEFAULT "-sv")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105603.360689.patch
Type: text/x-patch
Size: 1479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210722/ff07049d/attachment.bin>
More information about the llvm-commits
mailing list