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


------------------------------------------------------------------------------
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to