diff options
author | Eric Fiselier <eric@efcs.ca> | 2015-05-12 22:49:18 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2015-05-12 22:49:18 +0000 |
commit | 8e2f0a868ed7e788ec1b77ade323deeca0d48219 (patch) | |
tree | b88fdb2a8731352dc3c8bb24b31635df8a9446a0 /llvm/cmake/modules | |
parent | 19be68f0887f310c3ec527bad7e3eb43e6d25d62 (diff) | |
download | bcm5719-llvm-8e2f0a868ed7e788ec1b77ade323deeca0d48219.tar.gz bcm5719-llvm-8e2f0a868ed7e788ec1b77ade323deeca0d48219.zip |
Allow the CMake option 'LLVM_ABI_BREAKING_CHECKS' to be undefined.
When building libc++abi in a standalone configuration the CMake option
'LLVM_ABI_BREAKING_CHECKS` will not be defined.
llvm-svn: 237204
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r-- | llvm/cmake/modules/HandleLLVMOptions.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake index d2b89748765..b878863b32f 100644 --- a/llvm/cmake/modules/HandleLLVMOptions.cmake +++ b/llvm/cmake/modules/HandleLLVMOptions.cmake @@ -88,6 +88,9 @@ elseif( uppercase_LLVM_ABI_BREAKING_CHECKS STREQUAL "FORCE_ON" ) set( LLVM_ENABLE_ABI_BREAKING_CHECKS 1 ) elseif( uppercase_LLVM_ABI_BREAKING_CHECKS STREQUAL "FORCE_OFF" ) # We don't need to do anything special to turn off ABI breaking checks. +elseif( NOT DEFINED LLVM_ABI_BREAKING_CHECKS ) + # Treat LLVM_ABI_BREAKING_CHECKS like "FORCE_OFF" when it has not been + # defined. else() message(FATAL_ERROR "Unknown value for LLVM_ABI_BREAKING_CHECKS: \"${LLVM_ABI_BREAKING_CHECKS}\"!") endif() |