diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2019-05-02 19:37:26 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2019-05-02 19:37:26 +0000 |
| commit | a7c766b51dfb7b060d5c5ccfbe5a0dcf00653018 (patch) | |
| tree | edee9b5f5449a2923ac06d9b43dcbfae9985c9c3 /llvm/docs/CMake.rst | |
| parent | 366212726a1a7caef08ebb1ebf84d511841d4f99 (diff) | |
| download | bcm5719-llvm-a7c766b51dfb7b060d5c5ccfbe5a0dcf00653018.tar.gz bcm5719-llvm-a7c766b51dfb7b060d5c5ccfbe5a0dcf00653018.zip | |
build: add option to disable unwind tables
The unwind tables (`.eh_frame`, `.arm.extab`) add a significant chunk of data to
the final binaries. These should not be needed normally, particularly when
exceptions are disabled. This enables shrinking `lldb-server` by ~18% (3 MiB)
when built with gold.
llvm-svn: 359819
Diffstat (limited to 'llvm/docs/CMake.rst')
| -rw-r--r-- | llvm/docs/CMake.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/docs/CMake.rst b/llvm/docs/CMake.rst index d62c42c32f8..92e7b9c2a47 100644 --- a/llvm/docs/CMake.rst +++ b/llvm/docs/CMake.rst @@ -266,6 +266,10 @@ LLVM-specific variables **LLVM_ENABLE_THREADS**:BOOL Build with threads support, if available. Defaults to ON. +**LLVM_ENABLE_UNWIND_TABLES**:BOOL + Enable unwind tables in the binary. Disabling unwind tables can reduce the + size of the libraries. Defaults to ON. + **LLVM_CXX_STD**:STRING Build with the specified C++ standard. Defaults to "c++11". |

