[llvm-commits] [llvm] r78803 - in /llvm/trunk: CMakeLists.txt include/llvm/Config/config.h.cmake
Gabor Greif
ggreif at gmail.com
Wed Aug 12 01:37:38 PDT 2009
Author: ggreif
Date: Wed Aug 12 03:37:37 2009
New Revision: 78803
URL: http://llvm.org/viewvc/llvm-project?rev=78803&view=rev
Log:
here comes the CMAKE part on LLVM_COMPACT_SENTINELS; see also r78628 and r78661
Modified:
llvm/trunk/CMakeLists.txt
llvm/trunk/include/llvm/Config/config.h.cmake
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=78803&r1=78802&r2=78803&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Wed Aug 12 03:37:37 2009
@@ -94,6 +94,12 @@
endif()
endif()
+if( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" AND NOT LLVM_ENABLE_ASSERTIONS )
+ set( LLVM_COMPACT_SENTINELS 1 )
+else( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" AND NOT LLVM_ENABLE_ASSERTIONS )
+ set( LLVM_COMPACT_SENTINELS 0 )
+endif( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" AND NOT LLVM_ENABLE_ASSERTIONS )
+
if( LLVM_TARGETS_TO_BUILD STREQUAL "all" )
set( LLVM_TARGETS_TO_BUILD ${LLVM_ALL_TARGETS} )
endif()
@@ -102,7 +108,7 @@
foreach(c ${LLVM_TARGETS_TO_BUILD})
list(FIND LLVM_ALL_TARGETS ${c} idx)
if( idx LESS 0 )
- message(FATAL_ERROR "The target `${c}' does not exists.
+ message(FATAL_ERROR "The target `${c}' does not exist.
It should be one of\n${LLVM_ALL_TARGETS}")
else()
set(LLVM_ENUM_TARGETS "${LLVM_ENUM_TARGETS}LLVM_TARGET(${c})\n")
Modified: llvm/trunk/include/llvm/Config/config.h.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Config/config.h.cmake?rev=78803&r1=78802&r2=78803&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Config/config.h.cmake (original)
+++ llvm/trunk/include/llvm/Config/config.h.cmake Wed Aug 12 03:37:37 2009
@@ -440,6 +440,9 @@
/* Define to 1 if you have the <windows.h> header file. */
#cmakedefine HAVE_WINDOWS_H ${HAVE_WINDOWS_H}
+/* Define to 1 for ilist sentinel compaction */
+#cmakedefine LLVM_COMPACT_SENTINELS ${LLVM_COMPACT_SENTINELS}
+
/* Installation directory for binary executables */
#undef LLVM_BINDIR
More information about the llvm-commits
mailing list