[Mesa-dev] cflags mess with llvm builds
chantry.xavier at gmail.com
Fri Sep 24 05:06:51 PDT 2010
When gallium llvm is enabled, configure.ac does the following :
This is the result on my system :
-I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS -O2 -fomit-frame-pointer -fPIC
I specifically set -O0 to easier gdb debugging and
-fno-omit-frame-pointer to use some profiling tools, but they were
both silently overridden by llvm cflags.
Also scons/llvm.py only uses cppflags, not cflags, which at least
gives a better result
llvm-config --cppflags : -I/usr/include -DNDEBUG -D_GNU_SOURCE
then src/gallium/Makefile.template has :
LIBRARY_DEFINES += $(LLVM_CFLAGS)
Do we want / need these definitions for all the code in src/gallium,
or is it possible to add them only in the parts that do use llvm and
need the definitions from llvm-config --cppflags ?
I found it weird that enabling or disabling gallium llvm resulted in
nv50 gallium built with different gcc flags.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1204 bytes
Desc: not available
More information about the mesa-dev