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.

To compile wine with Clang, use:

export CC=clang 
export CXX=clang
export CFLAGS="-std=gnu89 -g"

Current Status

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.

Known bugs

Bug Wine bug url clang bug url Workaround
Can't build wine in 64-bit mode n/a (resolved fixed)
Clang doesn't support ms_hook_prologue n/a
Dragonegg fails to compile loader/preloader.c (resolved fixed)

Static analyzer bugs

See also

This page was last edited on 1 March 2016, at 00:01.