llvm.org GIT mirror llvm / 15f65b2
[dump] Make LLVM_ENABLE_DUMP independent, and move to llvm-config.h Summary: Make LLVM_ENABLE_DUMP independent LLVM_ENABLE_ASSERTIONS, move it to llvm-config.h, and update description. Differential Revision: https://reviews.llvm.org/D38406 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320111 91177308-0d34-0410-b5e6-96231b3b80d8 Don Hinton 2 years ago
3 changed file(s) with 4 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
384384 option(LLVM_ENABLE_PEDANTIC "Compile with pedantic enabled." ON)
385385 option(LLVM_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF)
386386
387 option(LLVM_ENABLE_DUMP "Enable dump functions in release builds" OFF)
387 option(LLVM_ENABLE_DUMP "Enable dump functions even when assertions are disabled" OFF)
388388
389389 if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
390390 option(LLVM_ENABLE_ASSERTIONS "Enable assertions" OFF)
391391 else()
392392 option(LLVM_ENABLE_ASSERTIONS "Enable assertions" ON)
393 endif()
394
395 if( LLVM_ENABLE_ASSERTIONS )
396 set(LLVM_ENABLE_DUMP ON)
397393 endif()
398394
399395 option(LLVM_ENABLE_EXPENSIVE_CHECKS "Enable expensive checks" OFF)
358358 /* Has gcc/MSVC atomic intrinsics */
359359 #cmakedefine01 LLVM_HAS_ATOMICS
360360
361 /* Define if LLVM_ENABLE_DUMP is enabled */
362 #cmakedefine LLVM_ENABLE_DUMP
363
364361 /* Host triple LLVM will be executed on */
365362 #cmakedefine LLVM_HOST_TRIPLE "${LLVM_HOST_TRIPLE}"
366363
1212
1313 #ifndef LLVM_CONFIG_H
1414 #define LLVM_CONFIG_H
15
16 /* Define if LLVM_ENABLE_DUMP is enabled */
17 #cmakedefine LLVM_ENABLE_DUMP
1518
1619 /* Define if we link Polly to the tools */
1720 #cmakedefine LINK_POLLY_INTO_TOOLS