<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - More robust way of detecting LLVM major and minor versions"
href="https://bugs.freedesktop.org/show_bug.cgi?id=66029">66029</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>More robust way of detecting LLVM major and minor versions
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>klemensbaum@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Component</th>
<td>Mesa core
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=81187" name="attach_81187" title="Use the new version defines if available">attachment 81187</a> <a href="attachment.cgi?id=81187&action=edit" title="Use the new version defines if available">[details]</a></span>
Use the new version defines if available
LLVM added LLVM_VERSION_MAJOR and LLVM_VERSION_MINOR defines in r150405 (see
<a href="http://thread.gmane.org/gmane.comp.compilers.llvm.cvs/107277">http://thread.gmane.org/gmane.comp.compilers.llvm.cvs/107277</a>).
For better compatibility and to avoid breaking in the future, these should be
used instead of the current sed hack that deletes the "svn.*" part from the
`llvm-config --version' output.
The attached patch uses the new defines if available, and falls back to the sed
hack otherwise.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>