diff options
| author | Justin Bogner <mail@justinbogner.com> | 2016-02-08 21:55:19 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2016-02-08 21:55:19 +0000 |
| commit | 740f2ca6725d16612ab4c108cddb850aaf0bcc1b (patch) | |
| tree | 4b362ba388fc6aa28b30c96d5bca6f252121d573 /llvm/cmake | |
| parent | d75b7181df3d2c1e6fcbf185b24aed53f25c2b7f (diff) | |
| download | bcm5719-llvm-740f2ca6725d16612ab4c108cddb850aaf0bcc1b.tar.gz bcm5719-llvm-740f2ca6725d16612ab4c108cddb850aaf0bcc1b.zip | |
cmake: Use "set" instead of "option" for LLVM_ENABLE_LTO
Apparently option is for bools and cmake-gui will display this
strangely with option.
Pointed out by edward-san - thanks!
llvm-svn: 260154
Diffstat (limited to 'llvm/cmake')
| -rw-r--r-- | llvm/cmake/modules/HandleLLVMOptions.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake index 8156e8c83ae..1ec16e8b901 100644 --- a/llvm/cmake/modules/HandleLLVMOptions.cmake +++ b/llvm/cmake/modules/HandleLLVMOptions.cmake @@ -656,7 +656,7 @@ append_if(LLVM_BUILD_INSTRUMENTED "-fprofile-instr-generate" CMAKE_EXE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS) -option(LLVM_ENABLE_LTO "Build LLVM with LTO. May be specified as Thin or Full to use a particular kind of LTO" OFF) +set(LLVM_ENABLE_LTO OFF CACHE STRING "Build LLVM with LTO. May be specified as Thin or Full to use a particular kind of LTO") string(TOUPPER "${LLVM_ENABLE_LTO}" uppercase_LLVM_ENABLE_LTO) if(uppercase_LLVM_ENABLE_LTO STREQUAL "THIN") append("-flto=thin" CMAKE_CXX_FLAGS CMAKE_C_FLAGS |

