llvm.org GIT mirror llvm / 9befba8
here comes the CMAKE part on LLVM_COMPACT_SENTINELS; see also r78628 and r78661 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78803 91177308-0d34-0410-b5e6-96231b3b80d8 Gabor Greif 11 years ago
2 changed file(s) with 10 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9393 endif()
9494 endif()
9595
96 if( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" AND NOT LLVM_ENABLE_ASSERTIONS )
97 set( LLVM_COMPACT_SENTINELS 1 )
98 else( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" AND NOT LLVM_ENABLE_ASSERTIONS )
99 set( LLVM_COMPACT_SENTINELS 0 )
100 endif( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" AND NOT LLVM_ENABLE_ASSERTIONS )
101
96102 if( LLVM_TARGETS_TO_BUILD STREQUAL "all" )
97103 set( LLVM_TARGETS_TO_BUILD ${LLVM_ALL_TARGETS} )
98104 endif()
101107 foreach(c ${LLVM_TARGETS_TO_BUILD})
102108 list(FIND LLVM_ALL_TARGETS ${c} idx)
103109 if( idx LESS 0 )
104 message(FATAL_ERROR "The target `${c}' does not exists.
110 message(FATAL_ERROR "The target `${c}' does not exist.
105111 It should be one of\n${LLVM_ALL_TARGETS}")
106112 else()
107113 set(LLVM_ENUM_TARGETS "${LLVM_ENUM_TARGETS}LLVM_TARGET(${c})\n")
438438
439439 /* Define to 1 if you have the header file. */
440440 #cmakedefine HAVE_WINDOWS_H ${HAVE_WINDOWS_H}
441
442 /* Define to 1 for ilist sentinel compaction */
443 #cmakedefine LLVM_COMPACT_SENTINELS ${LLVM_COMPACT_SENTINELS}
441444
442445 /* Installation directory for binary executables */
443446 #undef LLVM_BINDIR