[Mesa-dev] Fixes to build Mesa 10.4 against LLVM 3.5 on windows

Rob Conde rob.conde at ai-solutions.com
Tue Dec 16 12:08:47 PST 2014


I built Mesa 10.4 with LLVM 3.5 today and I had to make a couple of fixes to get it to work:


  1.  root\src\mesa\compiler.h

After:

#include "c99_compat.h" /* inline, __func__, etc. */

Add:

#ifdef _MSC_VER
#define __attribute__(a)
#endif

Otherwise you get a compile error in root\build\windows-x86_64\mesa\program\program_parse.tab.c

  2.  root\scons\llvm.py

Add 'LLVMBitReader' to libs list (i.e. 'LLVMBitWriter', 'LLVMBitReader', 'LLVMX86Disassembler', ...)

Otherwise you get a linker error on opengl32.dll


Rob Conde
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141216/0706d482/attachment.html>


More information about the mesa-dev mailing list