diff options
author | Justin Bogner <mail@justinbogner.com> | 2016-02-08 21:01:24 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2016-02-08 21:01:24 +0000 |
commit | 9fd2039fafc9ef9f03efb4910099eef29871c993 (patch) | |
tree | b7a74ddc050dd84220780cea114810912b7486dc /llvm/docs | |
parent | a3be895b6167f2694c1d4cd179cc90ba682230d9 (diff) | |
download | bcm5719-llvm-9fd2039fafc9ef9f03efb4910099eef29871c993.tar.gz bcm5719-llvm-9fd2039fafc9ef9f03efb4910099eef29871c993.zip |
cmake: Accept "thin" or "full" as arguments to -DLLVM_ENABLE_LTO
Mehdi suggested in a review of r259766 that it's also useful to easily
set the type of LTO. Augment the cmake variable to support that.
llvm-svn: 260143
Diffstat (limited to 'llvm/docs')
-rw-r--r-- | llvm/docs/CMake.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/docs/CMake.rst b/llvm/docs/CMake.rst index 12d74ace161..879e4627e41 100644 --- a/llvm/docs/CMake.rst +++ b/llvm/docs/CMake.rst @@ -351,9 +351,10 @@ LLVM-specific variables are ``Address``, ``Memory``, ``MemoryWithOrigins``, ``Undefined``, ``Thread``, and ``Address;Undefined``. Defaults to empty string. -**LLVM_ENABLE_LTO**:BOOL - Add the ``-flto`` flag to the compile and link command lines, - enabling link-time optimization. Defaults to OFF. +**LLVM_ENABLE_LTO**:STRING + Add ``-flto`` or ``-flto=`` flags to the compile and link command + lines, enabling link-time optimization. Possible values are ``Off``, + ``On``, ``Thin`` and ``Full``. Defaults to OFF. **LLVM_PARALLEL_COMPILE_JOBS**:STRING Define the maximum number of concurrent compilation jobs. |