<div dir="auto"><div>At my previous employer we carried a local patch to convince Clang trunk to identify as GCC 4.6.1 to work around some overzealous build system compiler detection. It might be nice (or completely reckless) to give users a way to force the GCC version string.</div><div dir="auto"><br></div><div dir="auto">4.2.1 does seem old as a default. </div><div dir="auto"><br></div><div dir="auto">- Kim <br><br><div class="gmail_quote" dir="auto"><div dir="ltr">Den tors 22 mars 2018 12:40René J.V. Bertin via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> skrev:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I notice that Clang 5 still identifies itself as GCC 4.2.1, on Mac as on Linux. Couldn't this be upgraded by now, especially when running with -stdlib=libstdc++ where it might make sense to provide the same conditional information to code being compiled as G++ would?<br>
<br>
An example, with wxWidgets 3.0 (built with clang 5.0) and Audacity 2.2.2 (built with GCC 7.2.0). This is on Linux, so clang will use the latest libstdc++ (lib + headers) by default:<br>
<br>
%> audacity<br>
11:58:22: Warning: Mismatch between the program and library build versions detected.<br>
The library used 3.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.8),<br>
and your program used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8).<br>
(abort)<br>
<br>
In practice Audacity runs just fine when I patch my wxWidgets install to turn that abort into a warning message.<br>
<br>
FWIW, the wxWidgets build doesn't specifically request C++11 while the Audacity build does. Apologies if that explains the flagged ABI differences.<br>
<br>
R.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" rel="noreferrer">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div></div>