[Mesa-dev] LLVM_CFLAGS

Bob Gleitsmann rjgleits at bellsouth.net
Sun Dec 5 01:06:54 PST 2010


Hello,

Can someone explain the value of including this in 
mesa/src/gallium/Makefile.template:

ifeq ($(MESA_LLVM),1)
LIBRARY_DEFINES += $(LLVM_CFLAGS)
endif

?
This effectively adds the LLVM cflags to gcc compiles if LLVM is enabled. One 
side-effect of this is to include -O3 optimization no matter what, making 
debugging very difficult. Removing it seems to have no catastrophic effects (or 
even detectable ones). 
But maybe I am missing something. 

Best Wishes,

Bob Gleitsmann


More information about the mesa-dev mailing list