On 16/12/14 20:08, Rob Conde wrote:
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
This looks like a bug in the particular bison version you have. I
haven't seen this issue.
I'm using bison 2.4.1 and flex 2.5.35 on my MSVC builds. And bison
3.0.2 on Linux. AFAICT, all generated program_parse.tab.c I've seen
don't rely on __attribute__ for non-GNU compilers.
Which bison/flex version did you use?
2. root\scons\llvm.py
Add 'LLVMBitReader' to libs list (i.e. 'LLVMBitWriter',
'LLVMBitReader', 'LLVMX86Disassembler', ...)
Otherwise you get a linker error on opengl32.dll
Thanks. I pushed this change.
Jose
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev