llvm.org GIT mirror llvm / ec9231b
CMake: Add option to set LLVM_ENABLE_DUMP Differential Revision: https://reviews.llvm.org/D38267 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314186 91177308-0d34-0410-b5e6-96231b3b80d8 Matthias Braun 2 years ago
2 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
395395
396396 option(LLVM_ENABLE_EXPENSIVE_CHECKS "Enable expensive checks" OFF)
397397
398 option(LLVM_ENABLE_DUMP "Enable dump functions in release builds" OFF)
399
398400 set(LLVM_ABI_BREAKING_CHECKS "WITH_ASSERTS" CACHE STRING
399401 "Enable abi-breaking checks. Can be WITH_ASSERTS, FORCE_ON or FORCE_OFF.")
400402
8181 if(LLVM_ENABLE_EXPENSIVE_CHECKS)
8282 add_definitions(-DEXPENSIVE_CHECKS)
8383 add_definitions(-D_GLIBCXX_DEBUG)
84 endif()
85
86 if(LLVM_ENABLE_DUMP)
87 add_definitions(-DLLVM_ENABLE_DUMP)
8488 endif()
8589
8690 string(TOUPPER "${LLVM_ABI_BREAKING_CHECKS}" uppercase_LLVM_ABI_BREAKING_CHECKS)