Differential Revision: https://reviews.llvm.org/D38267
llvm-svn: 314186
option(LLVM_ENABLE_EXPENSIVE_CHECKS "Enable expensive checks" OFF)
+option(LLVM_ENABLE_DUMP "Enable dump functions in release builds" OFF)
+
set(LLVM_ABI_BREAKING_CHECKS "WITH_ASSERTS" CACHE STRING
"Enable abi-breaking checks. Can be WITH_ASSERTS, FORCE_ON or FORCE_OFF.")
add_definitions(-D_GLIBCXX_DEBUG)
endif()
+if(LLVM_ENABLE_DUMP)
+ add_definitions(-DLLVM_ENABLE_DUMP)
+endif()
+
string(TOUPPER "${LLVM_ABI_BREAKING_CHECKS}" uppercase_LLVM_ABI_BREAKING_CHECKS)
if( uppercase_LLVM_ABI_BREAKING_CHECKS STREQUAL "WITH_ASSERTS" )