On Mon, Oct 11, 2010 at 8:18 AM, Charles Davis cdavis@mymail.mines.edu wrote:
On 10/11/10 8:54 AM, Jeff Cook wrote:
Just wondering if anyone has experimented building WINE with LLVM instead of GCC.
I have. It's how I got involved in LLVM in the first place :). My very first post to cfe-dev (the Clang development mailing list) was, in fact, asking about building Wine with Clang.
If so, what results were gotten?
After I fixed Clang (yes, I fixed Clang; I even have commit access to their repository), it was able to build Wine, but the resulting Wine didn't behave quite right compared to GCC-compiled Wine. Clang and LLVM have come a long way since then--this was about a year ago, just so you know--so I'm going to try again right now.
You can ask Austin English, too. He builds Wine with Clang and sends patches to fix the warnings Clang reports.
My understanding is that WINE tries hard to be pretty portable and non-GCC-specific, so I would expect good results...
Charles would be the one to thank for most of the fixes (to Clang and Wine). Henri Verbeet and Ricardo Filipe sent quite a few patches as well. All of them can be found here:
http://source.winehq.org/git/wine.git/?a=search&h=HEAD&st=commit&...
For its current status, my test scripts builds wine daily with gcc and clang and submits test results. You can compare them here (for today's results): http://test.winehq.org/data/9d18f10a0d1f2d39f6f47fd4b0f439e9fffd20b2/index_W...
look for 'ae-ub1004' for the plain gcc versus 'ae-ub1004-clang' for clang. Currently, gcc fails 8 tests for me, clang fails 15.