[llvm] r237204 - Allow the CMake option 'LLVM_ABI_BREAKING_CHECKS' to be undefined.

Eric Fiselier eric at efcs.ca
Tue May 12 15:49:19 PDT 2015


Author: ericwf
Date: Tue May 12 17:49:18 2015
New Revision: 237204

URL: http://llvm.org/viewvc/llvm-project?rev=237204&view=rev
Log:
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.

Modified:
    llvm/trunk/cmake/modules/HandleLLVMOptions.cmake

Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=237204&r1=237203&r2=237204&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Tue May 12 17:49:18 2015
@@ -88,6 +88,9 @@ elseif( uppercase_LLVM_ABI_BREAKING_CHEC
   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()





More information about the llvm-commits mailing list