https://wiki.winehq.org/index.php?title=Clang&feed=atom&action=history
Clang - Revision history
2024-03-28T22:27:41Z
Revision history for this page on the wiki
MediaWiki 1.41.0
https://wiki.winehq.org/index.php?title=Clang&diff=1943&oldid=prev
RosanneDiMesio: Initial import; fix markup; suppress TOC
2016-03-01T00:01:08Z
<p>Initial import; fix markup; suppress TOC</p>
<p><b>New page</b></p><div>__NOTOC__<br />
[http://clang.llvm.org/ Clang] is a compiler front end for the C, C++, and Objective-C programming languages, using the Low Level Virtual Machine (LLVM) as its back end. The goal is to offer a replacement to the GNU Compiler Collection (GCC) software stack.<br />
<br />
To compile wine with Clang, use:<br />
<br />
<source lang="bash"><br />
#!/bin/bash <br />
export CC=clang <br />
export CXX=clang<br />
export CFLAGS="-std=gnu89 -g"<br />
./configure<br />
make</source><br />
== Current Status ==<br />
Using Wine 1.8 and Clang 3.7.0, the Wine code was built successfully. As Clang is developing fast, it's recommended to use new releases.<br />
<br />
== Known bugs ==<br />
{|class="wikitable"<br />
||'''Bug''' ||'''Wine bug url''' ||'''clang bug url''' ||'''Workaround''' <br />
|-<br />
||Can't build wine in 64-bit mode ||n/a ||http://llvm.org/bugs/show_bug.cgi?id=8851 (resolved fixed) || <br />
|-<br />
||Clang doesn't support ms_hook_prologue ||n/a ||http://llvm.org/bugs/show_bug.cgi?id=10212 || <br />
|-<br />
||Dragonegg fails to compile loader/preloader.c ||http://bugs.winehq.org/show_bug.cgi?id=28050 ||http://llvm.org/bugs/show_bug.cgi?id=11173 (resolved fixed) || <br />
|}<br />
== Static analyzer bugs ==<br />
* [http://llvm.org/bugs/show_bug.cgi?id=14633 static analyzer + wine = Assertion `Loc.isMacroID() && "Not a macro expansion loc!"' failed (1/3)]<br />
* [http://llvm.org/bugs/show_bug.cgi?id=14634 static analyzer + wine = 'Assertion `T->isIntegerType() || Loc::isLocType(T)' failed' (2/3)]<br />
* [http://llvm.org/bugs/show_bug.cgi?id=14635 static analyzer + wine = 'Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!' (3/3)]<br />
== See also ==<br />
* [[StaticAnalysis#clang|StaticAnalysis - Using the Clang Static Analyzer]]<br />
* [http://source.winehq.org/git/wine.git/?a=search&h=HEAD&st=commit&s=clang&sr=1 Bugs found using Clang/LLVM]<br />
* [http://llvm.org/bugs/show_bug.cgi?id=10638 Clang meta-bug for Wine]<br />
* [http://llvm.org/bugs/show_bug.cgi?id=10682 Dragonegg meta-bug for Wine]<br />
----<br />
[[Category:Compilers]]</div>
RosanneDiMesio