diff options
| author | Sebastian Pop <spop@codeaurora.org> | 2014-03-11 22:42:07 +0000 |
|---|---|---|
| committer | Sebastian Pop <spop@codeaurora.org> | 2014-03-11 22:42:07 +0000 |
| commit | f7d02d479c24661b847f430fefe4f7ef508acbaa (patch) | |
| tree | d0ebf1feb8be26a6be81caecfd296c7e6b8fbe0b /llvm | |
| parent | 198034105d36c7006b9506572d365a43f0d66f3c (diff) | |
| download | bcm5719-llvm-f7d02d479c24661b847f430fefe4f7ef508acbaa.tar.gz bcm5719-llvm-f7d02d479c24661b847f430fefe4f7ef508acbaa.zip | |
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.
llvm-svn: 203615
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/CMakeLists.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 2e758f3fb70..49d1296950a 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -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) |

