<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - llvm-config omits flags that are impactful to ABI"
href="https://bugs.llvm.org/show_bug.cgi?id=41251">41251</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-config omits flags that are impactful to ABI
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>llvm-config
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mh+llvm@glandium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, sylvestre@debian.org
</td>
</tr></table>
<p>
<div>
<pre>I got this interesting case where clang is built with -stdlib=libc++, and a
plugin is not (because as of <a href="https://reviews.llvm.org/D55391">https://reviews.llvm.org/D55391</a>, -stdlib=libc++ is
not returned by llvm-config), where the plugin would fail to load because of
the missing symbol:
_ZN5clang12ast_matchers8internal15DynTypedMatcher17constructVariadicENS2_16VariadicOperatorENS_15ast_type_traits11ASTNodeKindESt6vectorIS2_SaIS2_EE
, while clang does have
_ZN5clang12ast_matchers8internal15DynTypedMatcher17constructVariadicENS2_16VariadicOperatorENS_15ast_type_traits11ASTNodeKindENSt3__16vectorIS2_NS6_9allocatorIS2_EEEE
As it turns out, std::vector is in a different namespace in libc++, so
-stdlib=libc++ makes a whole lot of a difference.
I wonder if there are other flags that are left out the same way since that
change.</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>