<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - LINK_POLLY_INTO_TOOLS option doesn't propogate to config.h"
href="http://llvm.org/bugs/show_bug.cgi?id=19614">19614</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LINK_POLLY_INTO_TOOLS option doesn't propogate to config.h
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>cmake
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>qneill@codeaurora.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>In the top level llvm CMakeLists.txt we have:
431 # Configure the three LLVM configuration header files.
432 configure_file(
433 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/config.h.cmake
434 ${LLVM_INCLUDE_DIR}/llvm/Config/config.h)
Later on:
518 option(WITH_POLLY "Build LLVM with Polly" ON)
519 option(LINK_POLLY_INTO_TOOLS "Static link Polly into tools" OFF)
Over in tools/opt/opt.cpp we see LINK_POLLY_INTO_TOOLS used like:
358 #ifdef LINK_POLLY_INTO_TOOLS
359 polly::initializePollyPasses(Registry);
360 #endif
361
It looks like because LINK_POLLY_INTO_TOOLS is after the configure of config.h,
then the #ifdef is never true.
Moving the option up above seemed to fix the problem.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>