[llvm] r203615 - move WITH_POLLY option before add_subdirectory(tools)
Sebastian Pop
spop at codeaurora.org
Tue Mar 11 15:42:07 PDT 2014
Author: spop
Date: Tue Mar 11 17:42:07 2014
New Revision: 203615
URL: http://llvm.org/viewvc/llvm-project?rev=203615&view=rev
Log:
move WITH_POLLY option before add_subdirectory(tools)
the first run of the polly buildbot failed, and then it started passing.
This is due to the fact that the buildbot re-builds in an existing directory,
and the first run does not have WITH_POLLY set when it enters tools/.
Thus, cmake ignores the tools/polly dir in the first run, and then because
it reuses the CMakeCache.txt of the previous run, it has the WITH_POLLY set
by the previous run, and so it passes the second time.
Modified:
llvm/trunk/CMakeLists.txt
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=203615&r1=203614&r2=203615&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Tue Mar 11 17:42:07 2014
@@ -502,6 +502,13 @@ endif()
add_subdirectory(projects)
+option(WITH_POLLY "Build LLVM with Polly" ON)
+if(WITH_POLLY)
+ if(NOT EXISTS ${LLVM_MAIN_SRC_DIR}/tools/polly/CMakeLists.txt)
+ set(WITH_POLLY OFF)
+ endif()
+endif(WITH_POLLY)
+
if( LLVM_INCLUDE_TOOLS )
add_subdirectory(tools)
endif()
@@ -564,10 +571,3 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
PATTERN ".svn" EXCLUDE
)
endif()
-
-option(WITH_POLLY "Build LLVM with Polly" ON)
-if(WITH_POLLY)
- if(NOT EXISTS ${LLVM_MAIN_SRC_DIR}/tools/polly/CMakeLists.txt)
- set(WITH_POLLY OFF)
- endif()
-endif(WITH_POLLY)
More information about the llvm-commits
mailing list