On Tuesday 06 January 2009 07:11:54 Joakim Sindholt wrote:
> Hello there people, this is my first time posting to a mailing list, so
> please bear with me if I don't get it right.
> To whomever wrote ./src/gallium/auxiliary/gallivm/Makefile, is there a
> specific reason for using clang and not gcc/g++ in the snippit below?
>
> gallivm_builtins.cpp: llvm_builtins.c
>       clang --emit-llvm < $< |llvm-as|opt -std-compile-opts > temp1.bin
>       (echo "static const unsigned char llvm_builtins_data[] = {"; od -txC
> temp1.bin | sed -e "s/^[0-9]*//" -e s"/ \([0-9a-f][0-9a-f]\)/0x\1,/g"
> -e"\$$d" | sed -e"\$$s/,$$/};/") >$@
>       rm temp1.bin
>
> gallivmsoabuiltins.cpp: soabuiltins.c
>       clang --emit-llvm < $< |llvm-as|opt -std-compile-opts > temp2.bin
>       (echo "static const unsigned char soabuiltins_data[] = {"; od -txC
> temp2.bin | sed -e "s/^[0-9]*//" -e s"/ \([0-9a-f][0-9a-f]\)/0x\1,/g"
> -e"\$$d" | sed -e"\$$s/,$$/};/") >$@
>       rm temp2.bin

Yea, because we generate LLVM IR and are currently using Clang specific 
syntax for vectors. 
I checked in the generated files so unless you touched the source files 
Makefile 
shouldn't try to regenerate them.

z

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to