Re: [Mesa-dev] LLVM_CFLAGS

2010-12-08 Thread Bob Gleitsmann
There is an option --includefiles that returns the directory with the include files. It isn't prefixed by -I so that would have to be worked out. Is that all that is needed? Seems like it should be. BG On Monday, December 06, 2010 12:58:11 pm Corbin Simpson wrote: > Isn't there a --cflags-only-I

Re: [Mesa-dev] LLVM_CFLAGS

2010-12-06 Thread José Fonseca
On Mon, 2010-12-06 at 10:58 -0800, Brian Paul wrote: > I'd like to simply try --cppflags for now and see if that fixes the > problem for us. There's a few -D flags that we also need; it's not > just the -I path. I agree. The scons build has been using --cppflags since the very beginning. I d

Re: [Mesa-dev] LLVM_CFLAGS

2010-12-06 Thread Brian Paul
I'd like to simply try --cppflags for now and see if that fixes the problem for us. There's a few -D flags that we also need; it's not just the -I path. -Brian On 12/06/2010 11:27 AM, Bob Gleitsmann wrote: There is an option --includefiles that returns the directory with the include files. I

Re: [Mesa-dev] LLVM_CFLAGS

2010-12-06 Thread Corbin Simpson
Isn't there a --cflags-only-I or something along those lines? Sending from a mobile, pardon the brevity. ~ C. On Dec 6, 2010 9:42 AM, "Dan Nicholson" wrote: > On Mon, Dec 6, 2010 at 9:15 AM, Brian Paul wrote: >> On 12/05/2010 02:06 AM, Bob Gleitsmann wrote: >>> >>> Hello, >>> >>> Can someone ex

Re: [Mesa-dev] LLVM_CFLAGS

2010-12-06 Thread Dan Nicholson
On Mon, Dec 6, 2010 at 9:15 AM, Brian Paul wrote: > On 12/05/2010 02:06 AM, Bob Gleitsmann wrote: >> >> 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 e

Re: [Mesa-dev] LLVM_CFLAGS

2010-12-06 Thread Brian Paul
On 12/05/2010 02:06 AM, Bob Gleitsmann wrote: 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

[Mesa-dev] LLVM_CFLAGS

2010-12-05 Thread Bob Gleitsmann
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 matt